diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-11-09 10:54:33 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-11-09 10:54:33 (GMT) |
commit | d9a275b3cc4a248da1f392fb5649b9fe7a93b12c (patch) | |
tree | 316d6a8c95568bc600fbad2538489cc353856da6 /src | |
parent | 7fdfa58b958b658feb7b20dd7a7322d235fe4bea (diff) | |
download | Qt-d9a275b3cc4a248da1f392fb5649b9fe7a93b12c.zip Qt-d9a275b3cc4a248da1f392fb5649b9fe7a93b12c.tar.gz Qt-d9a275b3cc4a248da1f392fb5649b9fe7a93b12c.tar.bz2 |
Check that we're not using double where qreal should be used
Added two missing qreal conversion from QS60Style.
Task-number: QTBUG-4894
Reviewed-by: Aleksandar Babic
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qs60style.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 016b6a7..5204743 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -1749,7 +1749,7 @@ void QS60Style::drawControl(ControlElement element, const QStyleOption *option, optionMenuItem.palette.setColor(QPalette::Disabled, QPalette::Text, QS60StylePrivate::lighterColor( optionMenuItem.palette.color(QPalette::Disabled, QPalette::Text))); painter->save(); - painter->setOpacity(0.5); + painter->setOpacity(qreal(0.75)); } QCommonStyle::drawItemText(painter, textRect, text_flags, optionMenuItem.palette, enabled, @@ -1855,7 +1855,7 @@ void QS60Style::drawControl(ControlElement element, const QStyleOption *option, painter->save(); if (widget) painter->setBrush(widget->palette().button()); - painter->setOpacity(0.3); + painter->setOpacity(qreal(0.3)); painter->fillRect(toolBar->rect, painter->brush()); painter->restore(); } |