Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/graphicsview/qgraphicssceneevent.cpp

    r2 r561  
    22**
    33** 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)
    56**
    67** This file is part of the QtGui module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    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.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** 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.
    3838** $QT_END_LICENSE$
    3939**
     
    4545    graphics view related events.
    4646    \since 4.2
    47     \ingroup multimedia
    4847    \ingroup graphicsview-api
    4948
     
    7776    \l{QGraphicsSceneMouseEvent::}{lastScreenPos()},
    7877    \l{QGraphicsSceneMouseEvent::}{lastScenePos()}, and
    79     \l{QGraphicsSceneMouseEvent::}{lastPos()}). 
     78    \l{QGraphicsSceneMouseEvent::}{lastPos()}).
    8079
    8180    \sa QEvent
     
    8483/*!
    8584    \class QGraphicsSceneMouseEvent
    86     \brief The QGraphicsSceneMouseEvent class provides mouse events 
     85    \brief The QGraphicsSceneMouseEvent class provides mouse events
    8786           in the graphics view framework.
    8887    \since 4.2
    89     \ingroup multimedia
    9088    \ingroup graphicsview-api
    9189
    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}.
    9595
    9696    In addition to containing the item, scene, and screen coordinates
     
    107107/*!
    108108    \class QGraphicsSceneWheelEvent
    109     \brief The QGraphicsSceneWheelEvent class provides wheel events 
     109    \brief The QGraphicsSceneWheelEvent class provides wheel events
    110110           in the graphics view framework.
    111111    \brief The QGraphicsSceneWheelEvent class provides wheel events in the
    112112    graphics view framework.
    113113    \since 4.2
    114     \ingroup multimedia
    115114    \ingroup graphicsview-api
    116115
     
    129128           menu events in the graphics view framework.
    130129    \since 4.2
    131     \ingroup multimedia
    132130    \ingroup graphicsview-api
    133131
     
    158156/*!
    159157    \class QGraphicsSceneHoverEvent
    160     \brief The QGraphicsSceneHoverEvent class provides hover events 
     158    \brief The QGraphicsSceneHoverEvent class provides hover events
    161159           in the graphics view framework.
    162160    \since 4.2
    163     \ingroup multimedia
    164161    \ingroup graphicsview-api
    165162
     
    174171/*!
    175172    \class QGraphicsSceneHelpEvent
    176     \brief The QGraphicsSceneHelpEvent class provides events when a 
     173    \brief The QGraphicsSceneHelpEvent class provides events when a
    177174           tooltip is requested.
    178175    \since 4.2
    179     \ingroup multimedia
    180176    \ingroup graphicsview-api
    181177
     
    200196    \class QGraphicsSceneDragDropEvent
    201197    \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.
    203199    \since 4.2
    204     \ingroup multimedia
    205200    \ingroup graphicsview-api
    206201
     
    227222    resizing in the graphics view framework.
    228223    \since 4.4
    229     \ingroup multimedia
    230224    \ingroup graphicsview-api
    231225
     
    244238    moving in the graphics view framework.
    245239    \since 4.4
    246     \ingroup multimedia
    247240    \ingroup graphicsview-api
    248241
     
    269262#include <QtCore/qsize.h>
    270263#include <QtCore/qstring.h>
     264#include "qgraphicsview.h"
     265#include "qgraphicsitem.h"
     266#include <QtGui/qgesture.h>
     267#include <private/qevent_p.h>
    271268
    272269QT_BEGIN_NAMESPACE
     
    314311QGraphicsSceneEvent::~QGraphicsSceneEvent()
    315312{
    316     delete d_ptr;
    317313}
    318314
     
    523519
    524520/*!
    525     Returns the last recorded mouse cursor position in scene 
     521    Returns the last recorded mouse cursor position in scene
    526522    coordinates. The last recorded position is the position of
    527523    the previous mouse event received by the view that created
     
    546542
    547543/*!
    548     Returns the last recorded mouse cursor position in screen 
     544    Returns the last recorded mouse cursor position in screen
    549545    coordinates. The last recorded position is the position of
    550546    the previous mouse event received by the view that created
     
    845841/*!
    846842    Returns the position of the mouse cursor in item coordinates at the moment
    847     the the context menu was requested.
     843    the context menu was requested.
    848844
    849845    \sa scenePos(), screenPos()
     
    993989/*!
    994990    Returns the position of the mouse cursor in item coordinates at the moment
    995     the the hover event was sent.
     991    the hover event was sent.
    996992
    997993    \sa scenePos(), screenPos()
     
    10181014/*!
    10191015    Returns the position of the mouse cursor in scene coordinates at the
    1020     moment the the hover event was sent.
     1016    moment the hover event was sent.
    10211017
    10221018    \sa pos(), screenPos()
     
    10431039/*!
    10441040    Returns the position of the mouse cursor in screen coordinates at the
    1045     moment the the hover event was sent.
     1041    moment the hover event was sent.
    10461042
    10471043    \sa pos(), scenePos()
     
    11391135    \since 4.4
    11401136
    1141     Returns the keyboard modifiers at the moment the the hover event was sent.
     1137    Returns the keyboard modifiers at the moment the hover event was sent.
    11421138*/
    11431139Qt::KeyboardModifiers QGraphicsSceneHoverEvent::modifiers() const
     
    11851181/*!
    11861182    Returns the position of the mouse cursor in scene coordinates at the
    1187     moment the the help event was sent.
     1183    moment the help event was sent.
    11881184
    11891185    \sa screenPos()
     
    12101206/*!
    12111207    Returns the position of the mouse cursor in screen coordinates at the
    1212     moment the the help event was sent.
     1208    moment the help event was sent.
    12131209
    12141210  \sa scenePos()
     
    12761272    Returns the mouse position of the event relative to the
    12771273    view that sent the event.
    1278    
     1274
    12791275    \sa QGraphicsView, screenPos(), scenePos()
    12801276*/
     
    13741370/*!
    13751371    Returns the keyboard modifiers that were pressed when the drag
    1376     and drop event was created. 
     1372    and drop event was created.
    13771373
    13781374    \sa Qt::KeyboardModifiers
     
    14291425    \c possibleActions().
    14301426
    1431     \sa Qt::DropAction, possibleActions()   
     1427    \sa Qt::DropAction, possibleActions()
    14321428*/
    14331429
     
    14731469    Returns the action that was performed in this drag and drop.
    14741470    This should be set by the receiver of the drop and is
    1475     returned by QDrag::start().
     1471    returned by QDrag::exec().
    14761472
    14771473    \sa setDropAction(), acceptProposedAction()
Note: See TracChangeset for help on using the changeset viewer.