]> git.sesse.net Git - vlc/commitdiff
Qt4: use addCallback
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 17 Apr 2012 16:42:42 +0000 (19:42 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 17 Apr 2012 16:42:42 +0000 (19:42 +0300)
modules/gui/qt4/dialogs/external.cpp

index 5aef58533ee0561c6dce74a4d58ae445d8e76a59..c251bb1a9c8e47d4114918b11b6c0d4f1671c550 100644 (file)
@@ -50,18 +50,16 @@ DialogHandler::DialogHandler (intf_thread_t *p_intf, QObject *_parent)
     connect (this, SIGNAL(error(const QString &, const QString &)),
              SLOT(displayError(const QString &, const QString &)));
 
-    connect (&critical, SIGNAL(pointerChanged(void *)),
-             SLOT(displayCritical(void *)),
-             Qt::BlockingQueuedConnection);
-    connect (&login, SIGNAL(pointerChanged(void *)),
-             SLOT(requestLogin(void *)),
-             Qt::BlockingQueuedConnection);
-    connect (&question, SIGNAL(pointerChanged(void *)),
-             SLOT(requestAnswer(void *)),
-             Qt::BlockingQueuedConnection);
-    connect (&progressBar, SIGNAL(pointerChanged(void *)),
-             SLOT(startProgressBar(void *)),
-             Qt::BlockingQueuedConnection);
+    critical.addCallback(this, SLOT(displayCritical(void *)),
+                         Qt::BlockingQueuedConnection);
+    login.addCallback(this, SLOT(requestLogin(void *)),
+                      Qt::BlockingQueuedConnection);
+    question.addCallback(this, SLOT(requestAnswer(void *)),
+                         Qt::BlockingQueuedConnection);
+    question.addCallback(this, SLOT(requestAnswer(void *)),
+                         Qt::BlockingQueuedConnection);
+    progressBar.addCallback(this, SLOT(startProgressBar(void *)),
+                            Qt::BlockingQueuedConnection);
     connect (this,
              SIGNAL(progressBarDestroyed(QWidget *)),
              SLOT(stopProgressBar(QWidget *)));