projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
client: Fix SettingsPage::hasChanged() failure
[quassel.git]
/
src
/
uisupport
/
settingspage.cpp
diff --git
a/src/uisupport/settingspage.cpp
b/src/uisupport/settingspage.cpp
index
009ab4c
..
bb9d934
100644
(file)
--- a/
src/uisupport/settingspage.cpp
+++ b/
src/uisupport/settingspage.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
5
by the Quassel Project *
+ * Copyright (C) 2005-201
8
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 *
@@
-50,40
+50,41
@@
void SettingsPage::setChangedState(bool hasChanged_)
void SettingsPage::load(QCheckBox *box, bool checked)
{
void SettingsPage::load(QCheckBox *box, bool checked)
{
- box->setProperty("
S
toredValue", checked);
+ box->setProperty("
s
toredValue", checked);
box->setChecked(checked);
}
bool SettingsPage::hasChanged(QCheckBox *box)
{
box->setChecked(checked);
}
bool SettingsPage::hasChanged(QCheckBox *box)
{
- return box->property("
S
toredValue").toBool() != box->isChecked();
+ return box->property("
s
toredValue").toBool() != box->isChecked();
}
void SettingsPage::load(QComboBox *box, int index)
{
}
void SettingsPage::load(QComboBox *box, int index)
{
- box->setProperty("
S
toredValue", index);
+ box->setProperty("
s
toredValue", index);
box->setCurrentIndex(index);
}
bool SettingsPage::hasChanged(QComboBox *box)
{
box->setCurrentIndex(index);
}
bool SettingsPage::hasChanged(QComboBox *box)
{
- return box->property("
S
toredValue").toInt() != box->currentIndex();
+ return box->property("
s
toredValue").toInt() != box->currentIndex();
}
void SettingsPage::load(QSpinBox *box, int value)
{
}
void SettingsPage::load(QSpinBox *box, int value)
{
- box->setProperty("
S
toredValue", value);
+ box->setProperty("
s
toredValue", value);
box->setValue(value);
}
bool SettingsPage::hasChanged(QSpinBox *box)
{
box->setValue(value);
}
bool SettingsPage::hasChanged(QSpinBox *box)
{
- return box->property("StoredValue").toInt() != box->value();
+ return box->property("storedValue").toInt() != box->value();
+}
}
}