diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-05-03 14:58:25 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-04 13:02:00 +0200 |
commit | 5190beae8166e615d2f910109cf081505ebe6807 (patch) | |
tree | ee5bd601feefda73847a47f446001fc9ea1a9b69 /src/gui/kernel/qwindow.h | |
parent | 5c2a055230e8c3a2bcd0f7f6f601d6c618774a8b (diff) |
Add setCursor API to QWindow
Change-Id: Id430ea9c94475356c9367a135f678f5f9ef795fc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwindow.h')
-rw-r--r-- | src/gui/kernel/qwindow.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow.h b/src/gui/kernel/qwindow.h index e99c062158..57c2f6f755 100644 --- a/src/gui/kernel/qwindow.h +++ b/src/gui/kernel/qwindow.h @@ -53,6 +53,10 @@ #include <QtGui/qsurfaceformat.h> #include <QtGui/qwindowdefs.h> +#ifndef QT_NO_CURSOR +#include <QtGui/qcursor.h> +#endif + QT_BEGIN_HEADER QT_BEGIN_NAMESPACE @@ -92,6 +96,9 @@ class Q_GUI_EXPORT QWindow : public QObject, public QSurface Q_PROPERTY(int height READ height WRITE setHeight NOTIFY heightChanged) Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged) Q_PROPERTY(Qt::ScreenOrientation contentOrientation READ contentOrientation WRITE reportContentOrientationChange NOTIFY contentOrientationChanged) +#ifndef QT_NO_CURSOR + Q_PROPERTY(QCursor cursor READ cursor WRITE setCursor RESET unsetCursor) +#endif public: @@ -205,6 +212,12 @@ public: QPoint mapToGlobal(const QPoint &pos) const; QPoint mapFromGlobal(const QPoint &pos) const; +#ifndef QT_NO_CURSOR + QCursor cursor() const; + void setCursor(const QCursor &); + void unsetCursor(); +#endif + public Q_SLOTS: void setVisible(bool visible); |