diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-10-12 15:25:37 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-10-14 11:04:55 +0000 |
commit | b0bb2d3422540cc6d4f9daced6c59aab822be850 (patch) | |
tree | 54417d6b31d846fee3aa5748a8dc73fc65f18dae /src/libs/utils/fancylineedit.h | |
parent | 1f8b9077ab999a71bf3afc43e3d84d069558f3dd (diff) |
FancyLineEdit: Allow to set the ok color
... and not just the error color.
Change-Id: I7fabd85404193ca3ee54d27025ca952995a0840f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/fancylineedit.h')
-rw-r--r-- | src/libs/utils/fancylineedit.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libs/utils/fancylineedit.h b/src/libs/utils/fancylineedit.h index 9c9c1477ac1..f897123c429 100644 --- a/src/libs/utils/fancylineedit.h +++ b/src/libs/utils/fancylineedit.h @@ -84,6 +84,7 @@ class QTCREATOR_UTILS_EXPORT FancyLineEdit : public CompletingLineEdit // Validation. Q_PROPERTY(QString initialText READ initialText WRITE setInitialText DESIGNABLE true) Q_PROPERTY(QColor errorColor READ errorColor WRITE setErrorColor DESIGNABLE true) + Q_PROPERTY(QColor okColor READ okColor WRITE setOkColor DESIGNABLE true) public: enum Side {Left = 0, Right = 1}; @@ -141,9 +142,11 @@ public: void setInitialText(const QString &); QColor errorColor() const; - void setErrorColor(const QColor &); + void setErrorColor(const QColor &c); + + QColor okColor() const; + void setOkColor(const QColor &c); - static QColor textColor(const QWidget *w); static void setTextColor(QWidget *w, const QColor &c); void setValidationFunction(const ValidationFunction &fn); |