diff options
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r-- | src/MainWindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index e771580..e4602ee 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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())); |