summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguiapplication.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-11-18 20:47:05 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-22 10:54:57 +0100
commitce829cbb857bb0b6f49de81b4e5cc9f26ac0b2d1 (patch)
treed636d971edfa93b9f1d1acc788a414c0d70d349c /src/gui/kernel/qguiapplication.cpp
parentc22602160072638e0b84157757bb8ab2f982acb4 (diff)
Add some properties to QWindow
x,y,width,height,visible and orientation Includes slot setters and notify signals for maximal QML compatibility. Change-Id: I124399093c00f8ad1485d4fbae816dfbe3027eff Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r--src/gui/kernel/qguiapplication.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index 1101764512..7e60689a2d 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -790,12 +790,22 @@ void QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePr
QGuiApplication::sendSpontaneousEvent(window, &e);
window->d_func()->resizeEventPending = false;
+
+ if (cr.width() != newRect.width())
+ window->widthChanged(cr.width());
+ if (cr.height() != newRect.height())
+ window->heightChanged(cr.height());
}
if (isMove) {
//### frame geometry
QMoveEvent e(newRect.topLeft(), cr.topLeft());
QGuiApplication::sendSpontaneousEvent(window, &e);
+
+ if (cr.x() != newRect.x())
+ window->xChanged(cr.x());
+ if (cr.y() != newRect.y())
+ window->yChanged(cr.y());
}
}