Greentext color is defined in stylesheet, and can be overridden with qss files

This commit is contained in:
hunbernd 2015-12-13 02:01:06 +01:00
parent bc4691ceb4
commit e2c40d6693
6 changed files with 32 additions and 1 deletions

View file

@ -9,8 +9,11 @@ class RsSyntaxHighlighter : public QSyntaxHighlighter
{
Q_OBJECT
Q_PROPERTY(QColor textColorQuote READ textColorQuote WRITE setTextColorQuote)
public:
RsSyntaxHighlighter(QTextEdit *parent = 0);
QColor textColorQuote() const { return quotationFormat.foreground().color(); };
protected:
void highlightBlock(const QString &text);
@ -21,6 +24,8 @@ private:
signals:
public slots:
void setTextColorQuote(QColor textColorQuote);
};
#endif // RSSYNTAXHIGHLIGHTER_H