X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fsettingspage.cpp;h=577f1683f14901a3927f844709b0eae27b2c616d;hp=cee72a202a837d3831feec08a30b7ed29155b5a1;hb=553fb640622542592d353ba2af06d5baef6a5915;hpb=61e73ddfdd22418890102c44166483ddb28e1c93 diff --git a/src/uisupport/settingspage.cpp b/src/uisupport/settingspage.cpp index cee72a20..577f1683 100644 --- a/src/uisupport/settingspage.cpp +++ b/src/uisupport/settingspage.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -33,7 +33,8 @@ SettingsPage::SettingsPage(const QString &category, const QString &title, QWidge : QWidget(parent), _category(category), _title(title), - _changed(false) + _changed(false), + _autoWidgetsChanged(false) { } @@ -87,7 +88,7 @@ void SettingsPage::initAutoWidgets() { findAutoWidgets(this, &_autoWidgets); foreach(QObject *widget, _autoWidgets) { - if(widget->inherits("QAbstractButton")) + if(widget->inherits("QAbstractButton") || widget->inherits("QGroupBox")) connect(widget, SIGNAL(toggled(bool)), SLOT(autoWidgetHasChanged())); else if(widget->inherits("QLineEdit") || widget->inherits("QTextEdit")) connect(widget, SIGNAL(textChanged(const QString &)), SLOT(autoWidgetHasChanged())); @@ -110,7 +111,7 @@ void SettingsPage::findAutoWidgets(QObject *parent, QObjectList *autoList) const QByteArray SettingsPage::autoWidgetPropertyName(QObject *widget) const { QByteArray prop; - if(widget->inherits("QAbstractButton")) + if(widget->inherits("QAbstractButton") || widget->inherits("QGroupBox")) prop = "checked"; else if(widget->inherits("QLineEdit") || widget->inherits("QTextEdit")) prop = "text";