summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremy Katz <jeremy.katz@nokia.com>2009-11-26 14:49:34 +0100
committerJeremy Katz <jeremy.katz@nokia.com>2009-11-26 15:00:26 +0100
commit55fc5c3bbb6c1f7d16f26459f66922af7961642d (patch)
tree48e2292ce77f3bad520f87bc449a62a64cf9327a /src
parentc290785d0f8e1ef7af4bdff683aab40b8ff33681 (diff)
added some documentation for QGraphicsSystemCursor
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qgraphicssystemcursor.cpp44
1 files changed, 43 insertions, 1 deletions
diff --git a/src/gui/painting/qgraphicssystemcursor.cpp b/src/gui/painting/qgraphicssystemcursor.cpp
index 022dc64c70..3fc836d359 100644
--- a/src/gui/painting/qgraphicssystemcursor.cpp
+++ b/src/gui/painting/qgraphicssystemcursor.cpp
@@ -39,7 +39,6 @@
**
****************************************************************************/
#include "qgraphicssystemcursor.h"
-//#include "qlighthousegraphicsscreen.h"
#include <QWidget>
#include <QPainter>
@@ -52,6 +51,49 @@ QT_BEGIN_NAMESPACE
QPointer<QGraphicsSystemCursor> QGraphicsSystemCursor::instance = 0;
+/*!
+ \class QGraphicsSystemCursor
+
+ \brief The QGraphicsSystemCursor class provides information about
+ pointer device events (movement, buttons), and requests to change
+ the currently displayed cursor.
+
+ Note that QGraphicsSystemCursor does not include any graphics for
+ display. An application that sets a QCursor may provide its own
+ graphics.
+
+ \sa QGraphicsSystemCursorImage
+*/
+
+/*!
+ \fn virtual void pointerEvent(const QMouseEvent & event)
+
+ This method is called by Qt whenever a QMouseEvent is generated by the
+ underlying pointer input. \a event is a reference to the QMouseEvent in
+ question. A default do-nothing implementation is provided.
+
+ \sa QApplicationPrivate::handleMouseEvent()
+*/
+
+/*!
+ \fn virtual void changeCursor(QCursor * widgetCursor, QWidget * widget)
+
+ \brief This method is called by Qt whenever the cursor graphic should be changed.
+
+ Implementation of this method is mandatory for a subclass of QGraphicsSystemCursor.
+
+ \a widgetCursor is a pointer to the QCursor that should be displayed.
+
+ \a widget is a pointer to the widget currently displayed at QCursor::pos(). Note
+ that this may be 0 if the current position is not occupied by a displayed widget.
+
+ \sa QApplicationPrivate::handleMouseEvent(), QCursor::pos()
+*/
+
+/*!
+ Constructs a QGraphicsSystemCursor
+
+*/
QGraphicsSystemCursor::QGraphicsSystemCursor(QGraphicsSystemScreen *scr )
: screen(scr)
{