ui: Added checkbox to enable/disable animations to preferences

This commit is contained in:
Eberhard Graether
2017-01-09 21:32:59 +01:00
parent 757f728f98
commit cee8a52ca4
7 changed files with 30 additions and 3 deletions
@@ -57,6 +57,10 @@ void QtProjectWizzardContentPreferences::populate(QGridLayout* layout, int& row)
}
connect(m_colorSchemes, SIGNAL(activated(int)), this, SLOT(colorSchemeChanged(int)));
// animations
m_useAnimations = addCheckBox("Animations", "Enable animations",
"Enable/disable animations throughout the user interface.", layout, row);
// logging
m_loggingEnabled = addCheckBox("Logging", "Enable console and file logging",
"Save log files and show log information in the console.", layout, row);
@@ -173,6 +177,8 @@ void QtProjectWizzardContentPreferences::load()
}
}
m_useAnimations->setChecked(appSettings->getUseAnimations());
m_loggingEnabled->setChecked(appSettings->getLoggingEnabled());
m_verboseIndexerLoggingEnabled->setChecked(appSettings->getVerboseIndexerLoggingEnabled());
m_verboseIndexerLoggingEnabled->setEnabled(m_loggingEnabled->isChecked());
@@ -205,6 +211,8 @@ void QtProjectWizzardContentPreferences::save()
appSettings->setColorSchemePath(m_colorSchemePaths[m_colorSchemes->currentIndex()]);
m_oldColorSchemeIndex = -1;
appSettings->setUseAnimations(m_useAnimations->isChecked());
appSettings->setLoggingEnabled(m_loggingEnabled->isChecked());
appSettings->setVerboseIndexerLoggingEnabled(m_verboseIndexerLoggingEnabled->isChecked());