- : SettingsPage(tr("Behaviour"), tr("Notifications"), parent) {
- ui.setupUi(this);
-
- connect(ui.animateTrayIcon, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
- connect(ui.showBubble, SIGNAL(toggled(bool)), this, SLOT(widgetHasChanged()));
- connect(ui.desktopBox, SIGNAL(toggled(bool)), this, SLOT(widgetHasChanged()));
- connect(ui.timeout_value, SIGNAL(valueChanged(int)), this, SLOT(widgetHasChanged()));
- 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->setVisible(false);
-#endif
+ : SettingsPage(tr("Appearance"), tr("Notifications"), parent),
+ _hasDefaults(false)
+{
+
+ QVBoxLayout *layout = new QVBoxLayout(this);
+ foreach(AbstractNotificationBackend *backend, QtUi::notificationBackends()) {
+ SettingsPage *cw = backend->createConfigWidget();
+ if(cw) {
+ cw->setParent(this);
+ _configWidgets.append(cw);
+ layout->addWidget(cw);
+ connect(cw, SIGNAL(changed(bool)), SLOT(widgetHasChanged()));
+ _hasDefaults |= cw->hasDefaults();
+ }
+ }
+ layout->addStretch(1);
+ load();