diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-06-03 15:20:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-06-03 15:20:18 +0200 |
commit | 33af3a0a361f258a7edd203f3b004ab778dda9af (patch) | |
tree | 95bc04b9534a148a91dd0648a02b1e3cdd319b58 /src/urlbar | |
parent | This easy solution should fix problems with long urls that pass right icons (diff) | |
download | rekonq-33af3a0a361f258a7edd203f3b004ab778dda9af.tar.xz |
Using Application::palette for ListItems
Diffstat (limited to 'src/urlbar')
-rw-r--r-- | src/urlbar/listitem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |