summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-06-12 10:47:42 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-14 03:05:41 +0200
commit0137f092af12110c427f05358f7b207ea95ea341 (patch)
treef314b8d0f744c4822af8f0d8890ecd9983a284d7 /src/gui/kernel
parent1539e8e310ee3da8ae44a4b5b28d0f72b1345eb4 (diff)
Introduce QPA API for size grip handling.
- Introduce API to do size grip handling (mouse press and move). - Move Windows code to Windows plugin. - Move X11 code to XCB plugin and activate it. Change-Id: I2f61d6ddc1fa07447e668554d41ecc820efca23f Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qplatformwindow.h2
-rw-r--r--src/gui/kernel/qplatformwindow_qpa.cpp17
2 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformwindow.h b/src/gui/kernel/qplatformwindow.h
index 7cb8d8cdb8..604398909d 100644
--- a/src/gui/kernel/qplatformwindow.h
+++ b/src/gui/kernel/qplatformwindow.h
@@ -117,6 +117,8 @@ public:
virtual void windowEvent(QEvent *event);
+ virtual bool startSystemResize(const QPoint &pos, Qt::Corner corner);
+
protected:
QScopedPointer<QPlatformWindowPrivate> d_ptr;
private:
diff --git a/src/gui/kernel/qplatformwindow_qpa.cpp b/src/gui/kernel/qplatformwindow_qpa.cpp
index 01254966f0..2380c6db75 100644
--- a/src/gui/kernel/qplatformwindow_qpa.cpp
+++ b/src/gui/kernel/qplatformwindow_qpa.cpp
@@ -336,6 +336,23 @@ void QPlatformWindow::windowEvent(QEvent *event)
}
/*!
+ Reimplement this method to start a system size grip drag
+ operation if the system supports it and return true to indicate
+ success.
+ It is called from the mouse press event handler of the size grip.
+
+ The default implementation is empty and does nothing with \a pos
+ and \a corner.
+*/
+
+bool QPlatformWindow::startSystemResize(const QPoint &pos, Qt::Corner corner)
+{
+ Q_UNUSED(pos)
+ Q_UNUSED(corner)
+ return false;
+}
+
+/*!
\class QPlatformWindow
\since 4.8
\internal