From 7942d6e0e0c29f870b471e44df6ba172732ef43a Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 6 Jul 2008 18:49:48 +0200 Subject: [PATCH] Some tweaking of NotificationsSettingsPage --- src/qtui/settingspages/notificationssettingspage.cpp | 7 +++++-- src/qtui/settingspages/notificationssettingspage.ui | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/qtui/settingspages/notificationssettingspage.cpp b/src/qtui/settingspages/notificationssettingspage.cpp index 9fbe7150..def42d95 100644 --- a/src/qtui/settingspages/notificationssettingspage.cpp +++ b/src/qtui/settingspages/notificationssettingspage.cpp @@ -35,6 +35,9 @@ NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent) connect(ui.x_value, SIGNAL(valueChanged(int)), this, SLOT(widgetHasChanged())); connect(ui.y_value, SIGNAL(valueChanged(int)), this, SLOT(widgetHasChanged())); +#ifndef HAVE_DBUS + ui.desktopBox->setEnabled(false); +#endif } bool NotificationsSettingsPage::hasDefaults() const { @@ -44,7 +47,7 @@ bool NotificationsSettingsPage::hasDefaults() const { void NotificationsSettingsPage::defaults() { ui.animateTrayIcon->setChecked(true); ui.showBubble->setChecked(true); - ui.desktopBox->setChecked(true); + ui.desktopBox->setChecked(false); ui.timeout_value->setValue(5000); ui.x_value->setValue(0); ui.y_value->setValue(0); @@ -62,7 +65,7 @@ void NotificationsSettingsPage::load() { settings["NotificationBubble"] = uiSettings.value("NotificationBubble", QVariant(true)); ui.showBubble->setChecked(settings["NotificationBubble"].toBool()); - settings["NotificationDesktop"] = uiSettings.value("NotificationDesktop", QVariant(true)); + settings["NotificationDesktop"] = uiSettings.value("NotificationDesktop", QVariant(false)); ui.desktopBox->setChecked(settings["NotificationDesktop"].toBool()); settings["NotificationDesktopTimeout"] = uiSettings.value("NotificationDesktopTimeout", QVariant(5000)); ui.timeout_value->setValue(settings["NotificationDesktopTimeout"].toInt()); diff --git a/src/qtui/settingspages/notificationssettingspage.ui b/src/qtui/settingspages/notificationssettingspage.ui index c7ffda55..17cb7f55 100644 --- a/src/qtui/settingspages/notificationssettingspage.ui +++ b/src/qtui/settingspages/notificationssettingspage.ui @@ -41,6 +41,9 @@ + + Sends Quassel's notifications to a notification daemon compliant to Freedesktop's Notification specification (org.freedesktop.Notification). + Desktop Notification (via DBus) -- 2.20.1