|
|
|
@ -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()));
|
|
|
|
|