diff options
author | Alessandro Portale <alessandro.portale@nokia.com> | 2009-11-25 13:11:06 (GMT) |
---|---|---|
committer | Alessandro Portale <alessandro.portale@nokia.com> | 2009-11-25 13:12:06 (GMT) |
commit | de593891c0e65c74d92958a7f6262ee01c055902 (patch) | |
tree | 78a83fe01a524fc88c191f83d1b88b2f1730ac31 /src | |
parent | b461da1040c32d6690870290d6716a3b5cb7e9e9 (diff) | |
download | Qt-de593891c0e65c74d92958a7f6262ee01c055902.zip Qt-de593891c0e65c74d92958a7f6262ee01c055902.tar.gz Qt-de593891c0e65c74d92958a7f6262ee01c055902.tar.bz2 |
Micro optimization
Don't request a palette if you do not use it.
Reviewed-By: Trustme
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qs60style.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 03f7a95..974c3ff 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -633,11 +633,11 @@ void QS60StylePrivate::setThemePalette(QWidget *widget) const { if(!widget) return; - QPalette widgetPalette = QApplication::palette(widget); //header view and its viewport need to be set 100% transparent button color, since drawing code will //draw transparent theme graphics to table column and row headers. if (qobject_cast<QHeaderView *>(widget)){ + QPalette widgetPalette = QApplication::palette(widget); widgetPalette.setColor(QPalette::Active, QPalette::ButtonText, s60Color(QS60StyleEnums::CL_QsnTextColors, 23, 0)); QHeaderView* header = qobject_cast<QHeaderView *>(widget); |