summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-11-19 20:28:48 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-11-19 20:28:48 (GMT)
commit04aefeb84dba892c677ca6f8b7b71781177389b2 (patch)
tree34410e8b3ff64a81a014b6fee03eeb9e0530e5d2 /src/gui/kernel
parent530c0a32bf58b382c32806bb6742b6029086c92e (diff)
parent2c3c8f63c36afaa47f94492215fa87989484a004 (diff)
downloadQt-04aefeb84dba892c677ca6f8b7b71781177389b2.zip
Qt-04aefeb84dba892c677ca6f8b7b71781177389b2.tar.gz
Qt-04aefeb84dba892c677ca6f8b7b71781177389b2.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Add script translation test data for plural forms Refactor script translation tests Resolve two save/restore geometry issues on X11. Split newQObject tests into smaller chunks. Compile fix Don't destroy Qt's internal pthread_key_t if it was not initialized
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qwidget.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index cd1c9f0..6bc699c 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -7066,13 +7066,8 @@ bool QWidget::restoreGeometry(const QByteArray &geometry)
setWindowState(ws);
d_func()->topData()->normalGeometry = restoredNormalGeometry;
} else {
- QPoint offset;
-#ifdef Q_WS_X11
- if (isFullScreen())
- offset = d_func()->topData()->fullScreenOffset;
-#endif
setWindowState(windowState() & ~(Qt::WindowMaximized | Qt::WindowFullScreen));
- move(restoredFrameGeometry.topLeft() + offset);
+ move(restoredFrameGeometry.topLeft());
resize(restoredNormalGeometry.size());
}
return true;