summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-04-07 12:01:23 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-04-07 12:01:23 (GMT)
commit27f0f0d674cb3f3408eb3817c32abd67560eb48b (patch)
treea95eb0e97533354ed4265c24f82a58fb40af0e02 /src/gui/styles
parent52e3a41448e548874d07d832635a0d671027f1dc (diff)
downloadQt-27f0f0d674cb3f3408eb3817c32abd67560eb48b.zip
Qt-27f0f0d674cb3f3408eb3817c32abd67560eb48b.tar.gz
Qt-27f0f0d674cb3f3408eb3817c32abd67560eb48b.tar.bz2
Remove workaround and fix properly
The workaround for 3.1 can now completely removed, since support for 3.x was dropped. Task-number: QTBUG-4565 Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qs60style_s60.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp
index 6a7158c..6b79874 100644
--- a/src/gui/styles/qs60style_s60.cpp
+++ b/src/gui/styles/qs60style_s60.cpp
@@ -776,16 +776,8 @@ QPoint qt_s60_fill_background_offset(const QWidget *targetWidget)
{
CCoeControl *control = targetWidget->effectiveWinId();
TPoint pos(0,0);
- if (control) {
- // FIXME properly: S60 3.1 has a bug that CCoeControl::PositionRelativeToScreen sometimes
- // freezes the device, possibly in cases where we run out of memory.
- // We use CCoeControl::Position instead in S60 3.1, which returns same values
- // in most cases.
- if (QSysInfo::s60Version() == QSysInfo::SV_S60_3_1)
- pos = control->Position();
- else
- pos = control->PositionRelativeToScreen();
- }
+ if (control)
+ pos = control->PositionRelativeToScreen();
return QPoint(pos.iX, pos.iY);
}