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

@ -10,6 +10,8 @@ class RSTextBrowser : public QTextBrowser
{
Q_OBJECT
Q_PROPERTY(QColor textColorQuote READ textColorQuote WRITE setTextColorQuote)
public:
explicit RSTextBrowser(QWidget *parent = 0);
@ -21,8 +23,11 @@ public:
virtual QVariant loadResource(int type, const QUrl &name);
QColor textColorQuote() const { return highliter->textColorQuote();}
public slots:
void showImages();
void setTextColorQuote(QColor textColorQuote) { highliter->setTextColorQuote(textColorQuote);}
private slots:
void linkClicked(const QUrl &url);