Skip to content
Snippets Groups Projects
Commit c0f1bcf8 authored by Federico M Pouzols's avatar Federico M Pouzols
Browse files

Merge pull request #122 from mantidproject/bugfix/10888_show_whitespace_state

Works well, the visibility is in sync with the "Window->Show Whitespace" option.
parents 3d1e7e5c 693df1a0
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,8 @@
MultiTabScriptInterpreter::MultiTabScriptInterpreter(ScriptingEnv *env, QWidget *parent)
: QTabWidget(parent), Scripted(env), m_last_dir(""),
m_cursor_pos(), m_reportProgress(false), m_recentScriptList(), m_nullScript(new NullScriptFileInterpreter),
m_current(m_nullScript), m_globalZoomLevel(0)
m_current(m_nullScript), m_globalZoomLevel(0), m_showWhitespace(false),
m_replaceTabs(true), m_tabWhitespaceCount(4), m_fontFamily(), m_codeFolding(false)
{
connect(this, SIGNAL(currentChanged(int)), this, SLOT(tabSelectionChanged(int)));
}
......
......@@ -126,7 +126,8 @@ void ScriptingWindow::readSettings()
m_manager->m_globalZoomLevel = settings.value("ZoomLevel",0).toInt();
m_toggleFolding->setChecked(settings.value("CodeFolding", false).toBool());
m_toggleWhitespace->setChecked(settings.value("ShowWhitespace", false).toBool());
m_manager->m_showWhitespace = m_toggleWhitespace->isChecked();
m_manager->m_replaceTabs = settings.value("ReplaceTabs", true ).toBool();
m_manager->m_tabWhitespaceCount = settings.value("TabWhitespaceCount", 4).toInt();
m_manager->m_fontFamily = settings.value("ScriptFontFamily","").toString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment