summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindow.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2012-11-08 14:35:05 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-08 15:01:42 +0100
commita6f49a4223dcfdfb92889d26323783342e50d9a2 (patch)
tree6669dc3e9b5d53ff85efbc40139bad2c80ee9f17 /src/gui/kernel/qwindow.h
parent672e7c875e8680818e23d0aef98129d95eb7e91c (diff)
Temporary backwards-compatible QWindow::setPos accessors
To be reverted after I19c00b54b1d2712f9418e8bcf56e35a8008b89ef and and Ibd5cd10814c8cbd2b1f6e49b70782c7768d2366d are both integrated Change-Id: I2e14d732cc7fc4168e8b4507a050f43f1e4c9e49 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/gui/kernel/qwindow.h')
-rw-r--r--src/gui/kernel/qwindow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow.h b/src/gui/kernel/qwindow.h
index 1d5a134f6d..b2889539ef 100644
--- a/src/gui/kernel/qwindow.h
+++ b/src/gui/kernel/qwindow.h
@@ -238,6 +238,12 @@ public:
inline void setPosition(const QPoint &pt) { setGeometry(QRect(pt, size())); }
inline void setPosition(int posx, int posy) { setPosition(QPoint(posx, posy)); }
+// Temporary backwards-compatible accessors for the benefit of Declarative
+// to be removed ASAP
+ inline void setPos(const QPoint &pt) { setPosition(pt); }
+ inline void setPos(int posx, int posy) { setPosition(posx, posy); }
+// end of temporary accessors
+
void resize(const QSize &newSize);
inline void resize(int w, int h) { resize(QSize(w, h)); }