summaryrefslogtreecommitdiffstats
path: root/src/UiGuiSettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/UiGuiSettings.cpp')
-rw-r--r--src/UiGuiSettings.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/UiGuiSettings.cpp b/src/UiGuiSettings.cpp
index 0f4ae72..c3fccbb 100644
--- a/src/UiGuiSettings.cpp
+++ b/src/UiGuiSettings.cpp
@@ -112,7 +112,7 @@ void UiGuiSettings::readAvailableTranslations()
// Find all translation files in the "translations" directory.
TQDir translationDirectory = TQDir(SettingsPaths::getGlobalFilesPath() + "/translations");
- for (TQString &file : translationDirectory.entryList(TQString("universalindent_*.qm")))
+ for (const TQString &file : translationDirectory.entryList(TQString("universalindent_*.qm")))
{
languageFileList << file;
}
@@ -348,7 +348,11 @@ void UiGuiSettings::handleValueChangeFromExtern(bool value)
void UiGuiSettings::emitSignalForSetting(TQString settingName)
{
// Emit the signal for the changed value.
- if (settingName == "LoadLastOpenedFileOnStartup")
+ if (settingName == "RecentlyOpenedListSize")
+ {
+ emit recentlyOpenedListSize(m_settings[settingName].toInt());
+ }
+ else if (settingName == "LoadLastOpenedFileOnStartup")
{
emit loadLastOpenedFileOnStartup(m_settings[settingName].toBool());
}
@@ -360,6 +364,10 @@ void UiGuiSettings::emitSignalForSetting(TQString settingName)
{
emit whiteSpaceIsVisible(m_settings[settingName].toBool());
}
+ else if (settingName == "IndenterParameterTooltipsEnabled")
+ {
+ emit indenterParameterTooltipsEnabled(m_settings[settingName].toBool());
+ }
else if (settingName == "TabWidth")
{
emit tabWidth(m_settings[settingName].toInt());