LogView patch - addText with force category, color now background

This commit is contained in:
2021-01-22 11:51:40 +03:00
parent af317cf4c9
commit 9ba018b868
4 changed files with 46 additions and 10 deletions

View File

@@ -73,6 +73,7 @@ public:
void clearCategories();
void addText(const QString & text, bool insert_newline = true);
void addText(const QString & text, const QString & keyword, bool insert_newline = true);
private:
struct QAD_APPLICATION_EXPORT Category {
@@ -88,13 +89,14 @@ private:
};
void changeEvent(QEvent * e);
void newLine();
void newLine(const QString & keyword);
QSize iconImageSize();
void filterBlock(QTextBlock block, const QString & fs, const QRegularExpression & regexp);
Ui::LogView * ui;
QList<Category> categories;
QTextCharFormat def_cf;
QTextCharFormat def_cf;
QTextBlockFormat def_bf;
QAction * actionLogSelectAll, * actionLogCopy, * actionLogClear;
public slots: