~ubuntu-branches/debian/experimental/quassel/experimental

« back to all changes in this revision

Viewing changes to src/qtui/taskbarnotificationbackend.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Mueller
  • Date: 2009-10-05 23:13:06 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091005231306-ngiajv5r0gbxjfoq
Tags: 0.5.0~rc2-1
* New upstream release (rc2)
* Make puiparts happy (closes: #538182)
* manageusers.py added (closes: #549296)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
{
32
32
  NotificationSettings notificationSettings;
33
33
  _enabled = notificationSettings.value("Taskbar/Enabled", true).toBool();
34
 
  _timeout = notificationSettings.value("Taskbar/Timeout", 0).toBool();
 
34
  _timeout = notificationSettings.value("Taskbar/Timeout", 0).toInt();
35
35
 
36
36
  notificationSettings.notify("Taskbar/Enabled", this, SLOT(enabledChanged(const QVariant &)));
37
37
  notificationSettings.notify("Taskbar/Timeout", this, SLOT(timeoutChanged(const QVariant &)));
38
38
}
39
39
 
40
40
void TaskbarNotificationBackend::notify(const Notification &notification) {
41
 
  Q_UNUSED(notification)
42
 
  if(_enabled) {
 
41
  if(_enabled && (notification.type == Highlight || notification.type == PrivMsg)) {
43
42
    QApplication::alert(QtUi::mainWindow(), _timeout);
44
43
  }
45
44
}