• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

DragAndDrop

Public Slots | Public Member Functions | Properties | List of all members
DeclarativeDragDropEvent Class Reference

#include <DeclarativeDragDropEvent.h>

Inheritance diagram for DeclarativeDragDropEvent:
Inheritance graph
[legend]

Public Slots

void accept (int action)
 

Public Member Functions

 DeclarativeDragDropEvent (QGraphicsSceneDragDropEvent *e, DeclarativeDropArea *parent=0)
 
int buttons () const
 
DeclarativeMimeData * mimeData ()
 
int modifiers () const
 
Qt::DropActions possibleActions () const
 
Qt::DropAction proposedAction () const
 
int x () const
 
int y () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Properties

int buttons
 
DeclarativeMimeData mimeData
 
int modifiers
 
Qt::DropActions possibleActions
 
Qt::DropAction proposedAction
 
int x
 
int y
 
- Properties inherited from QObject
 objectName
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 

Detailed Description

Definition at line 32 of file DeclarativeDragDropEvent.h.

Constructor & Destructor Documentation

DeclarativeDragDropEvent::DeclarativeDragDropEvent ( QGraphicsSceneDragDropEvent *  e,
DeclarativeDropArea *  parent = 0 
)

Definition at line 26 of file DeclarativeDragDropEvent.cpp.

Member Function Documentation

void DeclarativeDragDropEvent::accept ( int  action)
slot

Definition at line 42 of file DeclarativeDragDropEvent.cpp.

int DeclarativeDragDropEvent::buttons ( ) const
inline

Definition at line 102 of file DeclarativeDragDropEvent.h.

DeclarativeMimeData* DeclarativeDragDropEvent::mimeData ( )
inline

Definition at line 104 of file DeclarativeDragDropEvent.h.

int DeclarativeDragDropEvent::modifiers ( ) const
inline

Definition at line 103 of file DeclarativeDragDropEvent.h.

Qt::DropActions DeclarativeDragDropEvent::possibleActions ( ) const
inline

Definition at line 106 of file DeclarativeDragDropEvent.h.

Qt::DropAction DeclarativeDragDropEvent::proposedAction ( ) const
inline

Definition at line 105 of file DeclarativeDragDropEvent.h.

int DeclarativeDragDropEvent::x ( ) const
inline

Definition at line 100 of file DeclarativeDragDropEvent.h.

int DeclarativeDragDropEvent::y ( ) const
inline

Definition at line 101 of file DeclarativeDragDropEvent.h.

Property Documentation

int DeclarativeDragDropEvent::buttons
read

The pressed mouse buttons.

A combination of: Qt.NoButton The button state does not refer to any button (see QMouseEvent::button()). Qt.LeftButton The left button is pressed, or an event refers to the left button. (The left button may be the right button on left-handed mice.) Qt.RightButton The right button. Qt.MidButton The middle button. Qt.MiddleButton MidButton The middle button. Qt.XButton1 The first X button. Qt.XButton2 The second X button.

Definition at line 57 of file DeclarativeDragDropEvent.h.

DeclarativeMimeData DeclarativeDragDropEvent::mimeData
read

The mime data of this operation.

See also
DeclarativeMimeData

Definition at line 75 of file DeclarativeDragDropEvent.h.

int DeclarativeDragDropEvent::modifiers
read

Pressed keyboard modifiers, a combination of: Qt.NoModifier No modifier key is pressed.

Qt.ShiftModifier A Shift key on the keyboard is pressed. Qt.ControlModifier A Ctrl key on the keyboard is pressed. Qt.AltModifier An Alt key on the keyboard is pressed. Qt.MetaModifier A Meta key on the keyboard is pressed. Qt.KeypadModifier A keypad button is pressed. Qt.GroupSwitchModifier X11 only. A Mode_switch key on the keyboard is pressed.

Definition at line 69 of file DeclarativeDragDropEvent.h.

Qt::DropActions DeclarativeDragDropEvent::possibleActions
read

The possible different kind of action that can be done in the drop, is a combination of: Qt.CopyAction 0x1 Copy the data to the target.

Qt.MoveAction 0x2 Move the data from the source to the target. Qt.LinkAction 0x4 Create a link from the source to the target. Qt.ActionMask 0xff Qt.IgnoreAction 0x0 Ignore the action (do nothing with the data). Qt.TargetMoveAction 0x8002 On Windows, this value is used when the ownership of the D&D data should be taken over by the target application, i.e., the source application should not delete the data. On X11 this value is used to do a move. TargetMoveAction is not used on the Mac.

Definition at line 88 of file DeclarativeDragDropEvent.h.

Qt::DropAction DeclarativeDragDropEvent::proposedAction
read

Default action.

See also
possibleActions

Definition at line 94 of file DeclarativeDragDropEvent.h.

int DeclarativeDragDropEvent::x
read

The mouse X position of the event relative to the DropArea that is receiving the event.

Definition at line 39 of file DeclarativeDragDropEvent.h.

int DeclarativeDragDropEvent::y
read

The mouse Y position of the event relative to the DropArea that is receiving the event.

Definition at line 44 of file DeclarativeDragDropEvent.h.


The documentation for this class was generated from the following files:
  • DeclarativeDragDropEvent.h
  • DeclarativeDragDropEvent.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:31 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

DragAndDrop

Skip menu "DragAndDrop"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal