diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-11-20 16:36:54 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-11-20 16:40:30 +0100 |
commit | 2e82c14abc4b22f93de96517626f35849f2ef7b0 (patch) | |
tree | a9a1a42aee998a851f2071b1fc74b8346c3675d7 /src/plugins/cpptools/cppcodecompletion.cpp | |
parent | ad4c227ca45912b27383236d8b73b790e97acf8e (diff) | |
download | qt-creator-2e82c14abc4b22f93de96517626f35849f2ef7b0.tar.gz |
Fixed function argument widget text color in dark themes
By setting the window and button text colors to the tool tip text color,
since a tool tip background is drawn.
Task-number: QTCREATORBUG-322
Diffstat (limited to 'src/plugins/cpptools/cppcodecompletion.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodecompletion.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodecompletion.cpp b/src/plugins/cpptools/cppcodecompletion.cpp index 4d7bdb6972..41373494ec 100644 --- a/src/plugins/cpptools/cppcodecompletion.cpp +++ b/src/plugins/cpptools/cppcodecompletion.cpp @@ -87,6 +87,14 @@ public: { setFocusPolicy(Qt::NoFocus); setAttribute(Qt::WA_DeleteOnClose); + + // Set the window and button text to the tooltip text color, since this + // widget draws the background as a tooltip. + QPalette p = palette(); + const QColor toolTipTextColor = p.color(QPalette::Inactive, QPalette::ToolTipText); + p.setColor(QPalette::Inactive, QPalette::WindowText, toolTipTextColor); + p.setColor(QPalette::Inactive, QPalette::ButtonText, toolTipTextColor); + setPalette(p); } protected: |