/***************************************************************************
- * 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 *
#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);
-}