Make the style engine fix a little less obscure by copying the string explicitely...
[quassel.git] / src / uisupport / settingspage.cpp
index 7469454..7808a74 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel IRC Team                         *
+ *   Copyright (C) 2005-08 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -34,11 +34,30 @@ QString SettingsPage::title() const {
   return _title;
 }
 
+bool SettingsPage::hasDefaults() const {
+  return false;
+}
+
+void SettingsPage::defaults() {
+
+}
+
+bool SettingsPage::hasChanged() const {
+  return _changed;
+}
+
+bool SettingsPage::aboutToSave() {
+  return true;
+}
+
 void SettingsPage::changed() {
-  _changed = true;
-  emit changed(true);
+  setChangedState(true);
 }
 
-void SettingsPage::changeState(bool hasChanged) {
-  if(hasChanged != _changed) emit changed(hasChanged);
+void SettingsPage::setChangedState(bool hasChanged) {
+  if(hasChanged != _changed) {
+    _changed = hasChanged;
+    emit changed(hasChanged);
+  }
 }
+