diff options
author | Michele Calgaro <[email protected]> | 2023-08-07 12:47:45 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-07 12:47:45 +0900 |
commit | dd4c8a461d88cbbba745f4de76eed75a9a8e4cfe (patch) | |
tree | 656b076bf09631e891e1fcce9e5d1323087b14d8 /src/UiGuiSettings.cpp | |
parent | e19f9a02df7379c45782b81e2f401c9a4f6869a5 (diff) | |
download | universal-indent-gui-tqt-dd4c8a461d88cbbba745f4de76eed75a9a8e4cfe.tar.gz universal-indent-gui-tqt-dd4c8a461d88cbbba745f4de76eed75a9a8e4cfe.zip |
Added UiGuiSettingsDialog
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/UiGuiSettings.cpp')
-rw-r--r-- | src/UiGuiSettings.cpp | 12 |
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()); |