From 33af3a0a361f258a7edd203f3b004ab778dda9af Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 3 Jun 2010 15:20:18 +0200 Subject: Using Application::palette for ListItems --- src/urlbar/listitem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/urlbar') diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp index 0ab8c2d4..a8878418 100644 --- a/src/urlbar/listitem.cpp +++ b/src/urlbar/listitem.cpp @@ -65,9 +65,9 @@ ListItem::ListItem(const UrlSearchItem &item, QWidget *parent) m_option.initFrom(this); m_option.direction = Qt::LeftToRight; - QPalette p(palette()); - p.setColor(QPalette::Base, Application::palette().color(QPalette::Base)); - p.setColor(QPalette::AlternateBase, Application::palette().color(QPalette::AlternateBase)); + // use the same application palette (hence, the same colors) + // Qt docs says that using this cctor is possible & fast (qt:qpalette) + QPalette p(Application::palette()); setPalette(p); deactivate(); -- cgit v1.2.1