KoStoreDrag Class Reference
A generic drag object that holds a store (e.g. More...
#include <koStoreDrag.h>
Inheritance diagram for KoStoreDrag:


Public Member Functions | |
KoStoreDrag (const char *nativeMimeType, QWidget *dragSource=0L, const char *name=0L) | |
Static Public Member Functions | |
static bool | canDecode (const char *nativeMimeType, QMimeSource *e) |
static QCString | mimeType (const char *nativeMimeType) |
Detailed Description
A generic drag object that holds a store (e.g.KoZipStore) in memory. This allows to drag-n-drop and copy-paste complex koffice objects. As per usual with dragobjects, an instance of KoStoreDrag must be created on the "sending" side (dragging or copying). The "receiving" side (dropping or pasting) only uses provides()/canDecode() and encodedData().
To create the data in memory, create a QBuffer, then KoStore::createStore( theBuffer, .... ), save the data into the store and delete it. Finally, call setEncodedData().
Definition at line 36 of file koStoreDrag.h.
Constructor & Destructor Documentation
|
Definition at line 27 of file koStoreDrag.cc. |
Member Function Documentation
|
Returns the mimetype of the clipboard data for a given application, depending on the application's native mimetype.
Definition at line 22 of file koStoreDrag.cc. |
The documentation for this class was generated from the following files: