diff options
author | Daniel Teske <daniel.teske@digia.com> | 2014-08-11 17:31:27 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2014-08-12 14:14:22 +0200 |
commit | 7d5d9b4d0fc90f91aeb843e168f2cc4dcc13046d (patch) | |
tree | cc6d384e0a3b90b59262f131e6d5e18f062d66cd /src/libs/utils | |
parent | b7f1c9349596da84f5a7579cceca97130d01aebf (diff) | |
download | qt-creator-7d5d9b4d0fc90f91aeb843e168f2cc4dcc13046d.tar.gz |
FindToolBar: Add support for "lightcolored" panels
The labels need to be polished so that they get the right palette,
and the icon needs to be switched from light to dark.
Change-Id: I3e37947e741c3d92f3c1ac3bb02e631aa7803f59
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/libs/utils')
-rw-r--r-- | src/libs/utils/styledbar.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/utils/styledbar.cpp b/src/libs/utils/styledbar.cpp index 403c4d88c2..3afd56ed9c 100644 --- a/src/libs/utils/styledbar.cpp +++ b/src/libs/utils/styledbar.cpp @@ -54,7 +54,11 @@ bool StyledBar::isSingleRow() const void StyledBar::setLightColored(bool lightColored) { + if (isLightColored() == lightColored) + return; setProperty("lightColored", lightColored); + foreach (QWidget *childWidget, findChildren<QWidget *>()) + childWidget->style()->polish(childWidget); } bool StyledBar::isLightColored() const |