projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hiding unused settings from the colors settings page
[quassel.git]
/
src
/
qtui
/
settingspages
/
notificationssettingspage.cpp
diff --git
a/src/qtui/settingspages/notificationssettingspage.cpp
b/src/qtui/settingspages/notificationssettingspage.cpp
index
3407ac5
..
78e5334
100644
(file)
--- a/
src/qtui/settingspages/notificationssettingspage.cpp
+++ b/
src/qtui/settingspages/notificationssettingspage.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
8 by the Quassel IRC Team
*
+ * Copyright (C) 2005-0
9 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-25,7
+25,9
@@
#include "qtui.h"
NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent)
#include "qtui.h"
NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent)
- : SettingsPage(tr("Behaviour"), tr("Notifications"), parent) {
+ : SettingsPage(tr("Behaviour"), tr("Notifications"), parent),
+ _hasDefaults(false)
+{
QVBoxLayout *layout = new QVBoxLayout(this);
foreach(AbstractNotificationBackend *backend, QtUi::notificationBackends()) {
QVBoxLayout *layout = new QVBoxLayout(this);
foreach(AbstractNotificationBackend *backend, QtUi::notificationBackends()) {
@@
-35,6
+37,7
@@
NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent)
_configWidgets.append(cw);
layout->addWidget(cw);
connect(cw, SIGNAL(changed(bool)), SLOT(widgetHasChanged()));
_configWidgets.append(cw);
layout->addWidget(cw);
connect(cw, SIGNAL(changed(bool)), SLOT(widgetHasChanged()));
+ _hasDefaults |= cw->hasDefaults();
}
}
layout->addStretch(1);
}
}
layout->addStretch(1);
@@
-42,7
+45,7
@@
NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent)
}
bool NotificationsSettingsPage::hasDefaults() const {
}
bool NotificationsSettingsPage::hasDefaults() const {
- return
true
;
+ return
_hasDefaults
;
}
void NotificationsSettingsPage::defaults() {
}
void NotificationsSettingsPage::defaults() {