aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/srceditor.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-18 09:35:44 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-07-18 09:35:44 +0200
commit9db55f741e283d0e52f2cd07090d9403378cd6a5 (patch)
treed2cd522846707e9da3665e72ef01122fececa3f0 /qtmips_gui/srceditor.h
parent6fabd7c08a087278a44260335769d0e78aa355ee (diff)
downloadqtmips-9db55f741e283d0e52f2cd07090d9403378cd6a5.tar.gz
qtmips-9db55f741e283d0e52f2cd07090d9403378cd6a5.tar.bz2
qtmips-9db55f741e283d0e52f2cd07090d9403378cd6a5.zip
Rename Highlighter to HighlighterAsm to preare for alternative C highlighter.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/srceditor.h')
-rw-r--r--qtmips_gui/srceditor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_gui/srceditor.h b/qtmips_gui/srceditor.h
index 1fdbb98..02650e5 100644
--- a/qtmips_gui/srceditor.h
+++ b/qtmips_gui/srceditor.h
@@ -38,8 +38,8 @@
#include <QTextEdit>
#include <QString>
+#include <QSyntaxHighlighter>
#include "qtmipsmachine.h"
-#include "highlighter.h"
class SrcEditor : public QTextEdit {
Q_OBJECT
@@ -56,7 +56,7 @@ public:
void setCursorToLine(int ln);
void setFileName(QString filename);
private:
- Highlighter *highlighter;
+ QSyntaxHighlighter *highlighter;
void setup_common();
QString fname;
QString tname;