X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fdockmanagernotificationbackend.cpp;h=2a6ea9bffd2623d8dbb3443c8e1fea90819098bf;hp=a243022f38e7f620ce1483dcc67dbbb14bf440de;hb=900cce213a6ed000b7131a05a0dec7d04b35b023;hpb=fcacaaf16551524c7ebb6114254d005274cc3d63 diff --git a/src/qtui/dockmanagernotificationbackend.cpp b/src/qtui/dockmanagernotificationbackend.cpp index a243022f..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,7 +55,7 @@ DockManagerNotificationBackend::DockManagerNotificationBackend(QObject *parent) itemAdded(QDBusObjectPath()); - connect(Client::coreConnection(), SIGNAL(progressValueChanged(int)), this, SLOT(updateProgress(int))); + 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)); }