projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More build system tweaking, plus making icons work
[quassel.git]
/
src
/
uisupport
/
settingspage.cpp
diff --git
a/src/uisupport/settingspage.cpp
b/src/uisupport/settingspage.cpp
index
dd29e7e
..
e752ec7
100644
(file)
--- a/
src/uisupport/settingspage.cpp
+++ b/
src/uisupport/settingspage.cpp
@@
-20,25
+20,18
@@
#include "settingspage.h"
#include "settingspage.h"
-SettingsPage::SettingsPage(const QString &category, const QString &title, QWidget *parent) : QWidget(parent),
- _category(category), _title(title) {
-
- _changed = false;
-}
-
-QString SettingsPage::category() const {
- return _category;
+SettingsPage::SettingsPage(const QString &category, const QString &title, QWidget *parent)
+ : QWidget(parent),
+ _category(category),
+ _title(title),
+ _changed(false)
+{
}
}
-QString SettingsPage::title() const {
- return _title;
+void SettingsPage::setChangedState(bool hasChanged) {
+ if(hasChanged != _changed) {
+ _changed = hasChanged;
+ emit changed(hasChanged);
+ }
}
}
-void SettingsPage::changed() {
- _changed = true;
- emit changed(true);
-}
-
-void SettingsPage::changeState(bool hasChanged) {
- if(hasChanged != _changed) emit changed(hasChanged);
-}