X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainpage.cpp;h=5e853d2c6ee971efb03d8e43a78b6e2e1285a75d;hp=fe4f8a51a6630bd2074276c41def45bbdec54f65;hb=HEAD;hpb=fcacaaf16551524c7ebb6114254d005274cc3d63 diff --git a/src/qtui/mainpage.cpp b/src/qtui/mainpage.cpp index fe4f8a51..5e853d2c 100644 --- a/src/qtui/mainpage.cpp +++ b/src/qtui/mainpage.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,21 +20,22 @@ #include "mainpage.h" -#include #include #include #include #include +#include #include "client.h" #include "coreconnectdlg.h" #include "icon.h" -MainPage::MainPage(QWidget *parent) : QWidget(parent) +MainPage::MainPage(QWidget* parent) + : QWidget(parent) { - auto *layout = new QVBoxLayout(this); + auto* layout = new QVBoxLayout(this); layout->setAlignment(Qt::AlignCenter); - QLabel *label = new QLabel(this); + QLabel* label = new QLabel(this); label->setPixmap(QPixmap(":/pics/quassel-logo.png")); layout->addWidget(label); @@ -62,7 +63,8 @@ void MainPage::coreConnectionStateChanged() { if (Client::coreConnection()->state() == CoreConnection::Disconnected) { _connectButton->setEnabled(true); - } else { + } + else { _connectButton->setDisabled(true); } }