modernize: Replace most remaining old-style connects by PMF ones
[quassel.git] / src / common / posixsignalwatcher.cpp
index 7de0e77..4da9539 100644 (file)
@@ -45,7 +45,7 @@ PosixSignalWatcher::PosixSignalWatcher(QObject *parent)
     }
 
     _notifier = new QSocketNotifier(_sockpair[1], QSocketNotifier::Read, this);
-    connect(_notifier, SIGNAL(activated(int)), this, SLOT(onNotify(int)));
+    connect(_notifier, &QSocketNotifier::activated, this, &PosixSignalWatcher::onNotify);
     _notifier->setEnabled(true);
 
     registerSignal(SIGINT);