X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainpage.cpp;h=f85b44a679b0ac5df61767cdcd52f32d35f0d48c;hp=373e7076acdfa3b30d80a0956068177d57e7af5d;hb=98144aaad0cd747f186edcd0e36a1d67326ac766;hpb=0a43227b8cd44625f4881cc1545d42c8c8a4876c diff --git a/src/qtui/mainpage.cpp b/src/qtui/mainpage.cpp index 373e7076..f85b44a6 100644 --- a/src/qtui/mainpage.cpp +++ b/src/qtui/mainpage.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,26 +18,28 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ +#include "mainpage.h" + #include #include #include #include #include -#include "mainpage.h" -#include "coreconnectdlg.h" #include "client.h" +#include "coreconnectdlg.h" +#include "icon.h" MainPage::MainPage(QWidget *parent) : QWidget(parent) { - QVBoxLayout *layout = new QVBoxLayout(this); + auto *layout = new QVBoxLayout(this); layout->setAlignment(Qt::AlignCenter); QLabel *label = new QLabel(this); label->setPixmap(QPixmap(":/pics/quassel-logo.png")); layout->addWidget(label); if (Quassel::runMode() != Quassel::Monolithic) { - _connectButton = new QPushButton(QIcon::fromTheme("network-connect"), tr("Connect to Core...")); + _connectButton = new QPushButton(icon::get("network-connect"), tr("Connect to Core...")); _connectButton->setEnabled(Client::coreConnection()->state() == CoreConnection::Disconnected); connect(Client::coreConnection(), SIGNAL(stateChanged(CoreConnection::ConnectionState)), this, SLOT(coreConnectionStateChanged()));