Showing the changes to interface/src/ui/BaseLogDialog.cpp (1 of 6 files). Show all
Unified · Split
| @@ -16,7 +16,6 @@ · 15 unmodified lines | ||
| 16 | 16 | #include <QPlainTextEdit> |
| 17 | 17 | #include <QTextCursor> |
| 18 | 18 | #include <QPushButton> |
| 19 | −#include <QSyntaxHighlighter> | |
| 20 | 19 | |
| 21 | 20 | #include <PathUtils.h> |
| 22 | 21 | |
| @@ -34,21 +33,6 @@ const QColor HIGHLIGHT_COLOR = QColor("#3366CC"); · 11 unmodified lines | ||
| 34 | 33 | const QColor BOLD_COLOR = QColor("#445c8c"); |
| 35 | 34 | const QString BOLD_PATTERN = "\\[\\d*\\/.*:\\d*:\\d*\\]"; |
| 36 | 35 | |
| 37 | −class Highlighter : public QSyntaxHighlighter { | |
| 38 | −public: | |
| 39 | − Highlighter(QTextDocument* parent = nullptr); | |
| 40 | − void setBold(int indexToBold); | |
| 41 | − QString keyword; | |
| 42 | − | |
| 43 | −protected: | |
| 44 | − void highlightBlock(const QString& text) override; | |
| 45 | − | |
| 46 | −private: | |
| 47 | − QTextCharFormat boldFormat; | |
| 48 | − QTextCharFormat keywordFormat; | |
| 49 | − | |
| 50 | −}; | |
| 51 | − | |
| 52 | 36 | BaseLogDialog::BaseLogDialog(QWidget* parent) : QDialog(parent, Qt::Window) { |
| 53 | 37 | setWindowTitle("Base Log"); |
| 54 | 38 | setAttribute(Qt::WA_DeleteOnClose); |