X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainpage.cpp;h=fe4f8a51a6630bd2074276c41def45bbdec54f65;hp=9ebda87ddb7cd3fcb90b65f4c321b3dfa0997172;hb=f9efdde7f3a6004af8f834c409cfa6ae1d877692;hpb=b7447afe8e836376776dac26704e227a678d2913 diff --git a/src/qtui/mainpage.cpp b/src/qtui/mainpage.cpp index 9ebda87d..fe4f8a51 100644 --- a/src/qtui/mainpage.cpp +++ b/src/qtui/mainpage.cpp @@ -32,7 +32,7 @@ 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")); @@ -42,8 +42,8 @@ MainPage::MainPage(QWidget *parent) : QWidget(parent) _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())); - connect(_connectButton, SIGNAL(clicked(bool)), this, SLOT(showCoreConnectionDlg())); + connect(Client::coreConnection(), &CoreConnection::stateChanged, this, &MainPage::coreConnectionStateChanged); + connect(_connectButton, &QAbstractButton::clicked, this, &MainPage::showCoreConnectionDlg); layout->addWidget(_connectButton); } }