summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-11-10 20:02:35 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-11-11 12:47:41 (GMT)
commitc327076817dad875bd057bf28eab36b1d4e732ef (patch)
tree95558f034306c9bba8b5e306343638d9617aed9e /src/gui
parenta8b5418c70e0e2d3b4f9dc25c1383a78c4da8f22 (diff)
downloadQt-c327076817dad875bd057bf28eab36b1d4e732ef.zip
Qt-c327076817dad875bd057bf28eab36b1d4e732ef.tar.gz
Qt-c327076817dad875bd057bf28eab36b1d4e732ef.tar.bz2
Revert "Check that we're not using double where qreal should be used"
This reverts commit d9a275b3cc4a248da1f392fb5649b9fe7a93b12c.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/styles/qs60style.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index f15a6a5..16a81b3 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -1723,7 +1723,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(qreal(0.75));
+ painter->setOpacity(0.5);
}
QCommonStyle::drawItemText(painter, textRect, text_flags,
optionMenuItem.palette, enabled,
@@ -1829,7 +1829,7 @@ void QS60Style::drawControl(ControlElement element, const QStyleOption *option,
painter->save();
if (widget)
painter->setBrush(widget->palette().button());
- painter->setOpacity(qreal(0.3));
+ painter->setOpacity(0.3);
painter->fillRect(toolBar->rect, painter->brush());
painter->restore();
}