Changeset 561 for trunk/src/gui/graphicsview/qgraphicssceneevent.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/graphicsview/qgraphicssceneevent.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 45 45 graphics view related events. 46 46 \since 4.2 47 \ingroup multimedia48 47 \ingroup graphicsview-api 49 48 … … 77 76 \l{QGraphicsSceneMouseEvent::}{lastScreenPos()}, 78 77 \l{QGraphicsSceneMouseEvent::}{lastScenePos()}, and 79 \l{QGraphicsSceneMouseEvent::}{lastPos()}). 78 \l{QGraphicsSceneMouseEvent::}{lastPos()}). 80 79 81 80 \sa QEvent … … 84 83 /*! 85 84 \class QGraphicsSceneMouseEvent 86 \brief The QGraphicsSceneMouseEvent class provides mouse events 85 \brief The QGraphicsSceneMouseEvent class provides mouse events 87 86 in the graphics view framework. 88 87 \since 4.2 89 \ingroup multimedia90 88 \ingroup graphicsview-api 91 89 92 When a QGraphicsView receives a QMouseEvent, it translates it to 93 a QGraphicsSceneMouseEvent. The event is then forwarded to the 94 QGraphicsScene associated with the view. 90 When a QGraphicsView receives a QMouseEvent, it translates it to a 91 QGraphicsSceneMouseEvent. The event is then forwarded to the 92 QGraphicsScene associated with the view. If the event is not 93 handled by the scene, the view may use it, e.g., for the 94 \l{QGraphicsView::}{DragMode}. 95 95 96 96 In addition to containing the item, scene, and screen coordinates … … 107 107 /*! 108 108 \class QGraphicsSceneWheelEvent 109 \brief The QGraphicsSceneWheelEvent class provides wheel events 109 \brief The QGraphicsSceneWheelEvent class provides wheel events 110 110 in the graphics view framework. 111 111 \brief The QGraphicsSceneWheelEvent class provides wheel events in the 112 112 graphics view framework. 113 113 \since 4.2 114 \ingroup multimedia115 114 \ingroup graphicsview-api 116 115 … … 129 128 menu events in the graphics view framework. 130 129 \since 4.2 131 \ingroup multimedia132 130 \ingroup graphicsview-api 133 131 … … 158 156 /*! 159 157 \class QGraphicsSceneHoverEvent 160 \brief The QGraphicsSceneHoverEvent class provides hover events 158 \brief The QGraphicsSceneHoverEvent class provides hover events 161 159 in the graphics view framework. 162 160 \since 4.2 163 \ingroup multimedia164 161 \ingroup graphicsview-api 165 162 … … 174 171 /*! 175 172 \class QGraphicsSceneHelpEvent 176 \brief The QGraphicsSceneHelpEvent class provides events when a 173 \brief The QGraphicsSceneHelpEvent class provides events when a 177 174 tooltip is requested. 178 175 \since 4.2 179 \ingroup multimedia180 176 \ingroup graphicsview-api 181 177 … … 200 196 \class QGraphicsSceneDragDropEvent 201 197 \brief The QGraphicsSceneDragDropEvent class provides events for 202 drag and drop in the graphics view framework. 198 drag and drop in the graphics view framework. 203 199 \since 4.2 204 \ingroup multimedia205 200 \ingroup graphicsview-api 206 201 … … 227 222 resizing in the graphics view framework. 228 223 \since 4.4 229 \ingroup multimedia230 224 \ingroup graphicsview-api 231 225 … … 244 238 moving in the graphics view framework. 245 239 \since 4.4 246 \ingroup multimedia247 240 \ingroup graphicsview-api 248 241 … … 269 262 #include <QtCore/qsize.h> 270 263 #include <QtCore/qstring.h> 264 #include "qgraphicsview.h" 265 #include "qgraphicsitem.h" 266 #include <QtGui/qgesture.h> 267 #include <private/qevent_p.h> 271 268 272 269 QT_BEGIN_NAMESPACE … … 314 311 QGraphicsSceneEvent::~QGraphicsSceneEvent() 315 312 { 316 delete d_ptr;317 313 } 318 314 … … 523 519 524 520 /*! 525 Returns the last recorded mouse cursor position in scene 521 Returns the last recorded mouse cursor position in scene 526 522 coordinates. The last recorded position is the position of 527 523 the previous mouse event received by the view that created … … 546 542 547 543 /*! 548 Returns the last recorded mouse cursor position in screen 544 Returns the last recorded mouse cursor position in screen 549 545 coordinates. The last recorded position is the position of 550 546 the previous mouse event received by the view that created … … 845 841 /*! 846 842 Returns the position of the mouse cursor in item coordinates at the moment 847 the thecontext menu was requested.843 the context menu was requested. 848 844 849 845 \sa scenePos(), screenPos() … … 993 989 /*! 994 990 Returns the position of the mouse cursor in item coordinates at the moment 995 the thehover event was sent.991 the hover event was sent. 996 992 997 993 \sa scenePos(), screenPos() … … 1018 1014 /*! 1019 1015 Returns the position of the mouse cursor in scene coordinates at the 1020 moment the thehover event was sent.1016 moment the hover event was sent. 1021 1017 1022 1018 \sa pos(), screenPos() … … 1043 1039 /*! 1044 1040 Returns the position of the mouse cursor in screen coordinates at the 1045 moment the thehover event was sent.1041 moment the hover event was sent. 1046 1042 1047 1043 \sa pos(), scenePos() … … 1139 1135 \since 4.4 1140 1136 1141 Returns the keyboard modifiers at the moment the thehover event was sent.1137 Returns the keyboard modifiers at the moment the hover event was sent. 1142 1138 */ 1143 1139 Qt::KeyboardModifiers QGraphicsSceneHoverEvent::modifiers() const … … 1185 1181 /*! 1186 1182 Returns the position of the mouse cursor in scene coordinates at the 1187 moment the thehelp event was sent.1183 moment the help event was sent. 1188 1184 1189 1185 \sa screenPos() … … 1210 1206 /*! 1211 1207 Returns the position of the mouse cursor in screen coordinates at the 1212 moment the thehelp event was sent.1208 moment the help event was sent. 1213 1209 1214 1210 \sa scenePos() … … 1276 1272 Returns the mouse position of the event relative to the 1277 1273 view that sent the event. 1278 1274 1279 1275 \sa QGraphicsView, screenPos(), scenePos() 1280 1276 */ … … 1374 1370 /*! 1375 1371 Returns the keyboard modifiers that were pressed when the drag 1376 and drop event was created. 1372 and drop event was created. 1377 1373 1378 1374 \sa Qt::KeyboardModifiers … … 1429 1425 \c possibleActions(). 1430 1426 1431 \sa Qt::DropAction, possibleActions() 1427 \sa Qt::DropAction, possibleActions() 1432 1428 */ 1433 1429 … … 1473 1469 Returns the action that was performed in this drag and drop. 1474 1470 This should be set by the receiver of the drop and is 1475 returned by QDrag:: start().1471 returned by QDrag::exec(). 1476 1472 1477 1473 \sa setDropAction(), acceptProposedAction()
Note:
See TracChangeset
for help on using the changeset viewer.