X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainpage.cpp;fp=src%2Fqtui%2Fmainpage.cpp;h=fe4f8a51a6630bd2074276c41def45bbdec54f65;hp=f85b44a679b0ac5df61767cdcd52f32d35f0d48c;hb=fcacaaf16551524c7ebb6114254d005274cc3d63;hpb=714b39660fe19e7f092880019429c8da76ee2bd5 diff --git a/src/qtui/mainpage.cpp b/src/qtui/mainpage.cpp index f85b44a6..fe4f8a51 100644 --- a/src/qtui/mainpage.cpp +++ b/src/qtui/mainpage.cpp @@ -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); } }