X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fdockmanagernotificationbackend.cpp;h=2a6ea9bffd2623d8dbb3443c8e1fea90819098bf;hb=900cce213a6ed000b7131a05a0dec7d04b35b023;hp=53557fe52d82e8aa127e9d6247fb84e36a4965c1;hpb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;p=quassel.git diff --git a/src/qtui/dockmanagernotificationbackend.cpp b/src/qtui/dockmanagernotificationbackend.cpp index 53557fe5..2a6ea9bf 100644 --- a/src/qtui/dockmanagernotificationbackend.cpp +++ b/src/qtui/dockmanagernotificationbackend.cpp @@ -28,6 +28,7 @@ #include "clientsettings.h" #include "coreconnection.h" #include "clientbacklogmanager.h" +#include "util.h" DockManagerNotificationBackend::DockManagerNotificationBackend(QObject *parent) : AbstractNotificationBackend(parent), _bus(QDBusConnection::sessionBus()) @@ -54,8 +55,8 @@ DockManagerNotificationBackend::DockManagerNotificationBackend(QObject *parent) itemAdded(QDBusObjectPath()); - connect(Client::coreConnection(), SIGNAL(progressValueChanged(int)), this, SLOT(updateProgress(int))); - connect(Client::coreConnection(), SIGNAL(synchronized()), this, SLOT(synchronized())); + connect(Client::coreConnection(), &CoreConnection::progressValueChanged, this, selectOverload(&DockManagerNotificationBackend::updateProgress)); + connect(Client::coreConnection(), &CoreConnection::synchronized, this, &DockManagerNotificationBackend::synchronized); } @@ -123,7 +124,7 @@ void DockManagerNotificationBackend::updateProgress(int done, int total) void DockManagerNotificationBackend::synchronized() { - connect(Client::backlogManager(), SIGNAL(updateProgress(int, int)), this, SLOT(updateProgress(int, int))); + connect(Client::backlogManager(), &ClientBacklogManager::updateProgress, this, selectOverload(&DockManagerNotificationBackend::updateProgress)); } @@ -184,7 +185,7 @@ DockManagerNotificationBackend::ConfigWidget::ConfigWidget(bool enabled, QWidget layout->addWidget(enabledBox = new QCheckBox(tr("Mark dockmanager entry"), this)); enabledBox->setVisible(enabled); - connect(enabledBox, SIGNAL(toggled(bool)), SLOT(widgetChanged())); + connect(enabledBox, &QAbstractButton::toggled, this, &ConfigWidget::widgetChanged); }