Skip to content

Commit 8a74fe9

Browse files
committed
[Feature] Added syntax highlighter call to main window
1 parent 7d5821a commit 8a74fe9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MainWindow.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "MainWindow.h"
2+
#include "Syntax.h"
23

34
#include <QMenuBar>
45
#include <QFileDialog>
@@ -15,8 +16,9 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
1516
resize(800, 600);
1617

1718
editor = new CodeEditor(this);
18-
setCentralWidget(editor);
19+
syntax = new Syntax(editor->document());
1920

21+
setCentralWidget(editor);
2022
createMenuBar();
2123
}
2224

0 commit comments

Comments
 (0)