From a6f49a4223dcfdfb92889d26323783342e50d9a2 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 8 Nov 2012 14:35:05 +0100 Subject: Temporary backwards-compatible QWindow::setPos accessors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To be reverted after I19c00b54b1d2712f9418e8bcf56e35a8008b89ef and and Ibd5cd10814c8cbd2b1f6e49b70782c7768d2366d are both integrated Change-Id: I2e14d732cc7fc4168e8b4507a050f43f1e4c9e49 Reviewed-by: Samuel Rødal --- src/gui/kernel/qwindow.h | 6 ++++++ 1 file changed, 6 insertions(+) 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)); } -- cgit v1.2.3