From 552941118bb7f94bfb3ff8c7f854380408c85ffe Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 22 Nov 2017 19:52:38 +0200 Subject: Fix minor stylistic issues on the nheko theme --- src/LogoutDialog.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/LogoutDialog.cc') diff --git a/src/LogoutDialog.cc b/src/LogoutDialog.cc index c0db1270..8be6e166 100644 --- a/src/LogoutDialog.cc +++ b/src/LogoutDialog.cc @@ -17,6 +17,8 @@ #include #include +#include +#include #include "Config.h" #include "FlatButton.h" @@ -27,7 +29,6 @@ LogoutDialog::LogoutDialog(QWidget *parent) : QFrame(parent) { setMaximumSize(400, 400); - // setStyleSheet("background-color: #fff"); auto layout = new QVBoxLayout(this); layout->setSpacing(30); @@ -52,7 +53,6 @@ LogoutDialog::LogoutDialog(QWidget *parent) auto label = new QLabel(tr("Logout. Are you sure?"), this); label->setFont(font); - // label->setStyleSheet("color: #333333"); layout->addWidget(label); layout->addLayout(buttonLayout); @@ -60,3 +60,12 @@ LogoutDialog::LogoutDialog(QWidget *parent) connect(confirmBtn_, &QPushButton::clicked, [=]() { emit closing(true); }); connect(cancelBtn_, &QPushButton::clicked, [=]() { emit closing(false); }); } + +void +LogoutDialog::paintEvent(QPaintEvent *) +{ + QStyleOption opt; + opt.init(this); + QPainter p(this); + style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); +} -- cgit 1.5.1