more qued connections
This commit is contained in:
parent
edf25e2d7e
commit
10623b4636
|
@ -56,8 +56,8 @@ bool SnoreBackend::initialize( SnoreCore *snore )
|
|||
connect( snore->d(), SIGNAL(applicationRegistered(const Snore::Application&)), this, SLOT(slotRegisterApplication(const Snore::Application&)), Qt::QueuedConnection);
|
||||
connect( snore->d(), SIGNAL(applicationDeregistered(const Snore::Application&)), this, SLOT(slotDeregisterApplication(const Snore::Application&)), Qt::QueuedConnection);
|
||||
|
||||
connect( this, SIGNAL(notificationClosed(Snore::Notification)), snore->d(), SLOT(slotNotificationClosed(Snore::Notification)),Qt::QueuedConnection);
|
||||
connect( snore->d(), SIGNAL(notify(Snore::Notification)), this, SLOT(slotNotify(Snore::Notification)),Qt::QueuedConnection);
|
||||
connect( this, SIGNAL(notificationClosed(Snore::Notification)), snore->d(), SLOT(slotNotificationClosed(Snore::Notification)), Qt::QueuedConnection);
|
||||
connect( snore->d(), SIGNAL(notify(Snore::Notification)), this, SLOT(slotNotify(Snore::Notification)), Qt::QueuedConnection);
|
||||
|
||||
foreach(const Application &a,snore->aplications())
|
||||
{
|
||||
|
@ -124,7 +124,7 @@ bool SnoreSecondaryBackend::initialize(SnoreCore *snore)
|
|||
{
|
||||
return false;
|
||||
}
|
||||
connect( snore->d(), SIGNAL(notify(Snore::Notification)), this, SLOT(slotNotify(Snore::Notification)));
|
||||
connect( snore->d(), SIGNAL(notify(Snore::Notification)), this, SLOT(slotNotify(Snore::Notification)), Qt::QueuedConnection);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -217,7 +217,7 @@ void SnoreBackend::startTimeout(Notification ¬ification)
|
|||
notification.old().data()->timeoutTimer()->stop();
|
||||
}
|
||||
timer->setInterval(notification.timeout() * 1000);
|
||||
connect(timer,SIGNAL(timeout()),this,SLOT(notificationTimedOut()));
|
||||
connect(timer,SIGNAL(timeout()),this,SLOT(notificationTimedOut()), Qt::QueuedConnection);
|
||||
timer->start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue