summary refs log tree commit diff
path: root/src/WelcomePage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-22 19:52:38 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-22 19:52:38 +0200
commit552941118bb7f94bfb3ff8c7f854380408c85ffe (patch)
tree123d371c27a1713cde1685c1ca3f0676e17e913c /src/WelcomePage.cc
parentMerge branch 'theme' (diff)
downloadnheko-552941118bb7f94bfb3ff8c7f854380408c85ffe.tar.xz
Fix minor stylistic issues on the nheko theme
Diffstat (limited to 'src/WelcomePage.cc')
-rw-r--r--src/WelcomePage.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/WelcomePage.cc b/src/WelcomePage.cc

index f361ca05..e1c74d3e 100644 --- a/src/WelcomePage.cc +++ b/src/WelcomePage.cc
@@ -15,6 +15,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <QStyleOption> #include <QLabel> #include <QLayout> @@ -83,3 +84,12 @@ WelcomePage::WelcomePage(QWidget *parent) connect(registerBtn_, &QPushButton::clicked, this, &WelcomePage::userRegister); connect(loginBtn_, &QPushButton::clicked, this, &WelcomePage::userLogin); } + +void +WelcomePage::paintEvent(QPaintEvent *) +{ + QStyleOption opt; + opt.init(this); + QPainter p(this); + style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); +}