Update scriptingwindow.cpp
Show whitespaces in Scripting Window
This commit is contained in:
@@ -21,6 +21,12 @@ ScriptingWindow::ScriptingWindow(const QVector<CANFrame> *frames, QWidget *paren
|
|||||||
editor->setEnabled(false);
|
editor->setEnabled(false);
|
||||||
editor->setFont(QFont("Monospace", 12));
|
editor->setFont(QFont("Monospace", 12));
|
||||||
editor->show();
|
editor->show();
|
||||||
|
|
||||||
|
//Show whitespaces
|
||||||
|
QTextOption option = editor->document()->defaultTextOption();
|
||||||
|
option.setFlags(QTextOption::ShowTabsAndSpaces);
|
||||||
|
editor->document()->setDefaultTextOption(option);
|
||||||
|
|
||||||
ui->verticalLayout->insertWidget(2,editor, 10);
|
ui->verticalLayout->insertWidget(2,editor, 10);
|
||||||
|
|
||||||
readSettings();
|
readSettings();
|
||||||
|
|||||||
Reference in New Issue
Block a user