diff options
author | Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> | 2023-08-16 13:56:29 +0200 |
---|---|---|
committer | Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> | 2023-08-18 00:38:38 +0200 |
commit | 90980a54e87147ae59ed0628f8b1de67d98ecae4 (patch) | |
tree | 344915686a6acc4845bd3a615f8816f5b9d6b9d2 /src/gui/kernel/qpalette.h | |
parent | 7c55651ff2537fdc9b7c8667aff38d98c0cd9b65 (diff) |
Rename accent color in QPalette
Accent color role has been renamed according to name rule of other
color roles in QPalette.
Fixes: QTBUG-116107
Pick-to: 6.6
Change-Id: I70ac98a1e97afbdc7ea5f8d79f808c307e170712
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/gui/kernel/qpalette.h')
-rw-r--r-- | src/gui/kernel/qpalette.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qpalette.h b/src/gui/kernel/qpalette.h index 92d2502afe..7f05129a2c 100644 --- a/src/gui/kernel/qpalette.h +++ b/src/gui/kernel/qpalette.h @@ -55,8 +55,8 @@ public: NoRole, ToolTipBase, ToolTipText, PlaceholderText, - AccentColor, - NColorRoles = AccentColor + 1, + Accent, + NColorRoles = Accent + 1, }; Q_ENUM(ColorRole) @@ -99,7 +99,7 @@ public: inline const QBrush &link() const { return brush(Link); } inline const QBrush &linkVisited() const { return brush(LinkVisited); } inline const QBrush &placeholderText() const { return brush(PlaceholderText); } - inline const QBrush &accentColor() const { return brush(AccentColor); } + inline const QBrush &accent() const { return brush(Accent); } bool operator==(const QPalette &p) const; inline bool operator!=(const QPalette &p) const { return !(operator==(p)); } |