Commit 2fba1b05 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: use addCallback

parent 0166bb73
...@@ -50,18 +50,16 @@ DialogHandler::DialogHandler (intf_thread_t *p_intf, QObject *_parent) ...@@ -50,18 +50,16 @@ DialogHandler::DialogHandler (intf_thread_t *p_intf, QObject *_parent)
connect (this, SIGNAL(error(const QString &, const QString &)), connect (this, SIGNAL(error(const QString &, const QString &)),
SLOT(displayError(const QString &, const QString &))); SLOT(displayError(const QString &, const QString &)));
connect (&critical, SIGNAL(pointerChanged(void *)), critical.addCallback(this, SLOT(displayCritical(void *)),
SLOT(displayCritical(void *)), Qt::BlockingQueuedConnection);
Qt::BlockingQueuedConnection); login.addCallback(this, SLOT(requestLogin(void *)),
connect (&login, SIGNAL(pointerChanged(void *)), Qt::BlockingQueuedConnection);
SLOT(requestLogin(void *)), question.addCallback(this, SLOT(requestAnswer(void *)),
Qt::BlockingQueuedConnection); Qt::BlockingQueuedConnection);
connect (&question, SIGNAL(pointerChanged(void *)), question.addCallback(this, SLOT(requestAnswer(void *)),
SLOT(requestAnswer(void *)), Qt::BlockingQueuedConnection);
Qt::BlockingQueuedConnection); progressBar.addCallback(this, SLOT(startProgressBar(void *)),
connect (&progressBar, SIGNAL(pointerChanged(void *)), Qt::BlockingQueuedConnection);
SLOT(startProgressBar(void *)),
Qt::BlockingQueuedConnection);
connect (this, connect (this,
SIGNAL(progressBarDestroyed(QWidget *)), SIGNAL(progressBarDestroyed(QWidget *)),
SLOT(stopProgressBar(QWidget *))); SLOT(stopProgressBar(QWidget *)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment