Rename setting so it refers only to group expanded state changes.

This commit is contained in:
Florian Geyer 2012-05-30 11:21:42 +02:00
parent 5003499700
commit cf5f56af6f
4 changed files with 6 additions and 6 deletions

View File

@ -68,7 +68,7 @@ Config::Config()
m_settings.reset(new QSettings(userPath, QSettings::IniFormat));
m_defaults.insert("RememberLastDatabases", true);
m_defaults.insert("ModifiedOnVisualChanges", true);
m_defaults.insert("ModifiedOnExpandedStateChanges", true);
m_defaults.insert("security/clearclipboard", true);
m_defaults.insert("security/clearclipboardtimeout", 10);
}

View File

@ -229,7 +229,7 @@ void Group::setExpanded(bool expanded)
if (m_isExpanded != expanded) {
m_isExpanded = expanded;
updateTimeinfo();
if (config()->get("ModifiedOnVisualChanges").toBool()) {
if (config()->get("ModifiedOnExpandedStateChanges").toBool()) {
Q_EMIT modified();
}
}

View File

@ -49,7 +49,7 @@ SettingsWidget::~SettingsWidget()
void SettingsWidget::loadSettings()
{
m_generalUi->rememberLastDatabasesCheckBox->setChecked(config()->get("RememberLastDatabases").toBool());
m_generalUi->modifiedOnVisualChangesCheckBox->setChecked(config()->get("ModifiedOnVisualChanges").toBool());
m_generalUi->modifiedExpandedChangedCheckBox->setChecked(config()->get("ModifiedOnExpandedStateChanges").toBool());
m_secUi->clearClipboardCheckBox->setChecked(config()->get("security/clearclipboard").toBool());
m_secUi->clearClipboardSpinBox->setValue(config()->get("security/clearclipboardtimeout").toInt());
@ -59,7 +59,7 @@ void SettingsWidget::loadSettings()
void SettingsWidget::saveSettings()
{
config()->set("RememberLastDatabases", m_generalUi->rememberLastDatabasesCheckBox->isChecked());
config()->set("ModifiedOnVisualChanges", m_generalUi->modifiedOnVisualChangesCheckBox->isChecked());
config()->set("ModifiedOnExpandedStateChanges", m_generalUi->modifiedExpandedChangedCheckBox->isChecked());
config()->set("security/clearclipboard", m_secUi->clearClipboardCheckBox->isChecked());
config()->set("security/clearclipboardtimeout", m_secUi->clearClipboardSpinBox->value());

View File

@ -14,9 +14,9 @@
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="modifiedOnVisualChangesCheckBox">
<widget class="QCheckBox" name="modifiedExpandedChangedCheckBox">
<property name="text">
<string>Mark as modified on minor visual changes</string>
<string>Mark as modified on expanded state changes</string>
</property>
<property name="checked">
<bool>true</bool>