diff --git a/syntaxhighlighter.cpp b/syntaxhighlighter.cpp index ab61c06..fc7aa59 100644 --- a/syntaxhighlighter.cpp +++ b/syntaxhighlighter.cpp @@ -11,7 +11,7 @@ SyntaxHighlighter::SyntaxHighlighter(QTextDocument *parent) : QSyntaxHighlighter functionFormat.setForeground(Qt::blue); controlFormat.setForeground(Qt::blue); - controlFormat.setFontWeight(500); + controlFormat.setFontWeight(90); } void SyntaxHighlighter::highlightBlock(const QString &text) { diff --git a/texteditor.cpp b/texteditor.cpp index 2fc47a2..1fc16fc 100644 --- a/texteditor.cpp +++ b/texteditor.cpp @@ -17,7 +17,9 @@ TextEditor::TextEditor(QWidget *parent) : QTextEdit(parent) } TextEditor::~TextEditor() { - + if (button != NULL) { + button->setVisible(false); + } } TabButton* TextEditor::getTabButton() {