From f1cae49ad992c6d20570497914be58a075b8a763 Mon Sep 17 00:00:00 2001 From: Arun Narayanankutty Date: Wed, 16 Sep 2015 09:08:47 -0500 Subject: [PATCH] change help_text QPalette to WindowText --- src/globalsearch/globalsearchview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/globalsearch/globalsearchview.cpp b/src/globalsearch/globalsearchview.cpp index 6cc99ca04..cef978493 100644 --- a/src/globalsearch/globalsearchview.cpp +++ b/src/globalsearch/globalsearchview.cpp @@ -101,12 +101,12 @@ GlobalSearchView::GlobalSearchView(Application* app, QWidget* parent) disabled_layout->setContentsMargins(16, 0, 16, 32); suggestions_layout->setContentsMargins(16, 0, 16, 6); - // Set the colour of the help text to the disabled text colour + // Set the colour of the help text to the disabled window text colour QPalette help_palette = ui_->help_text->palette(); const QColor help_color = - help_palette.color(QPalette::Disabled, QPalette::Text); - help_palette.setColor(QPalette::Normal, QPalette::Text, help_color); - help_palette.setColor(QPalette::Inactive, QPalette::Text, help_color); + help_palette.color(QPalette::Disabled, QPalette::WindowText); + help_palette.setColor(QPalette::Normal, QPalette::WindowText, help_color); + help_palette.setColor(QPalette::Inactive, QPalette::WindowText, help_color); ui_->help_text->setPalette(help_palette); // Create suggestion widgets