summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Mardegan <alberto.mardegan@canonical.com>2012-05-08 10:17:15 -0700
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2012-05-09 10:07:56 +0200
commit88ed60c38aa2f36316b8d9b8db9659c003fe779e (patch)
tree00fdf2d698d935f9e83c522e639bd0efa5169f86
parent1b852651984f5f6adee85d7648dba7ac254c4dd4 (diff)
downloadqtquickcontrols-88ed60c38aa2f36316b8d9b8db9659c003fe779e.tar.gz
Add IBeamCursor (caret cursor) to QCursorArea
Change-Id: Ic63940284f789677f99dddfec5bf1e7c7d5cc1b8 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
-rw-r--r--src/qcursorarea.cpp3
-rw-r--r--src/qcursorarea.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/qcursorarea.cpp b/src/qcursorarea.cpp
index 01250ba1..4fb81739 100644
--- a/src/qcursorarea.cpp
+++ b/src/qcursorarea.cpp
@@ -66,6 +66,9 @@ void QCursorArea::setCursor(Cursor cursor)
case PointingHandCursor:
QDeclarativeItem::setCursor(Qt::PointingHandCursor);
break;
+ case IBeamCursor:
+ QDeclarativeItem::setCursor(Qt::IBeamCursor);
+ break;
default:
return;
}
diff --git a/src/qcursorarea.h b/src/qcursorarea.h
index 23107faa..cbe93f9b 100644
--- a/src/qcursorarea.h
+++ b/src/qcursorarea.h
@@ -45,7 +45,8 @@ public:
SplitHCursor,
SplitVCursor,
WaitCursor,
- PointingHandCursor
+ PointingHandCursor,
+ IBeamCursor,
};
explicit QCursorArea(QDeclarativeItem *parent = 0);