Fix functionality of 'Parameter tooltips' menu action

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/3/head
Michele Calgaro 1 year ago
parent d54efa8cb8
commit 95f2a9c897
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -231,6 +231,14 @@ void MainWindow::initMainWindow()
// Tell the TQScintilla editor if it has to show white space.
connect(m_settings, SIGNAL(whiteSpaceIsVisible(bool)), this, SLOT(setWhiteSpaceVisibility(bool)));
// Register the indenter parameter tooltip setting in the menu to the settings object
connect(actionIndenterParameterTooltipsEnabled, SIGNAL(toggled(bool)),
m_settings, SLOT(handleValueChangeFromExtern(bool)));
connect(m_settings, SIGNAL(indenterParameterTooltipsEnabled(bool)),
actionIndenterParameterTooltipsEnabled, SLOT(setOn(bool)));
actionIndenterParameterTooltipsEnabled->setOn(
m_settings->getValueByName("IndenterParameterTooltipsEnabled").toBool());
// Connect the remaining menu items.
connect(actionOpenSourceFile, SIGNAL(activated()), this, SLOT(openSourceFileDialog()));
connect(actionSaveSourceFile, SIGNAL(activated()), this, SLOT(saveSourceFile()));

@ -57,6 +57,7 @@ UiGuiSettings::UiGuiSettings() : TQObject()
m_actionSettings["actionEnableSyntaxHighlighting"] = "SyntaxHighlightingEnabled";
m_actionSettings["actionLoadLastOpenedFileOnStartup"] = "LoadLastOpenedFileOnStartup";
m_actionSettings["actionWhiteSpaceIsVisible"] = "WhiteSpaceIsVisible";
m_actionSettings["actionIndenterParameterTooltipsEnabled"] = "IndenterParameterTooltipsEnabled";
readAvailableTranslations();
loadSettings();

Loading…
Cancel
Save