summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2015-03-04 14:33:37 +0300
committerShawn Rutledge <shawn.rutledge@digia.com>2015-03-06 09:49:07 +0000
commit143350c8767a54469721e5489f5d62a3ab34e264 (patch)
tree29c4c24070e30f7106294cce73d5b4bd22cbb543 /src/gui
parent4ca43c71eb4f1b2cb969a219e3f1d3b12af02309 (diff)
Always clear QWindowPrivate::positionAutomatic in setFramePosition()
Change-Id: I3dd494eee6a133c05256cc1518853e6c5511f8b7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp
index a4b5376b6f..ad17621f9d 100644
--- a/src/gui/kernel/qwindow.cpp
+++ b/src/gui/kernel/qwindow.cpp
@@ -1500,10 +1500,10 @@ void QWindow::setFramePosition(const QPoint &point)
{
Q_D(QWindow);
d->positionPolicy = QWindowPrivate::WindowFrameInclusive;
+ d->positionAutomatic = false;
if (d->platformWindow) {
d->platformWindow->setGeometry(QRect(point, size()));
} else {
- d->positionAutomatic = false;
d->geometry.moveTopLeft(point);
}
}