summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-04-11 07:04:38 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-04-11 07:04:38 (GMT)
commitad95cfc5d6239ce25d8afbc2dc01a58b9b1bd8b4 (patch)
treed9b5bdb1474f22507e46f5525777ffc43277f081 /src
parent082b9125d627df11692f2a03b80c9e962e82eda5 (diff)
parent65d255c80d0e029bc94b320fa315095b957098a0 (diff)
downloadQt-ad95cfc5d6239ce25d8afbc2dc01a58b9b1bd8b4.zip
Qt-ad95cfc5d6239ce25d8afbc2dc01a58b9b1bd8b4.tar.gz
Qt-ad95cfc5d6239ce25d8afbc2dc01a58b9b1bd8b4.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-symbian-staging: Remove workaround and fix properly Optimize loc.prf for localization Remove obsolete files from qt.iby
Diffstat (limited to 'src')
-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);
}