kexi

KexiFieldDrag Class Reference

#include <kexidragobjects.h>

Inherits QStoredDrag.

List of all members.


Detailed Description

Drag object containing information about field(s).

Definition at line 31 of file kexidragobjects.h.


Public Member Functions

 KexiFieldDrag (const QString &sourceMimeType, const QString &sourceName, const QString &field, QWidget *parent, const char *name)
 KexiFieldDrag (const QString &sourceMimeType, const QString &sourceName, const QStringList &field, QWidget *parent=0, const char *name=0)
void addField (const QString &field)

Static Public Member Functions

static bool canDecodeSingle (QMimeSource *e)
static bool canDecodeMultiple (QMimeSource *e)
static bool decodeSingle (QDropEvent *e, QString &sourceMimeType, QString &sourceName, QString &field)
static bool decodeMultiple (QDropEvent *e, QString &sourceMimeType, QString &sourceName, QStringList &fields)

Constructor & Destructor Documentation

KexiFieldDrag::KexiFieldDrag ( const QString &  sourceMimeType,
const QString &  sourceName,
const QString &  field,
QWidget *  parent,
const char *  name 
)

implementation of KexiFieldDrag

Creates drag object for a single field field.

Definition at line 29 of file kexidragobjects.cpp.

KexiFieldDrag::KexiFieldDrag ( const QString &  sourceMimeType,
const QString &  sourceName,
const QStringList &  field,
QWidget *  parent = 0,
const char *  name = 0 
)

Creates drag object for multiple fields fields. If there's less than two elements in the list, data is set up as for above ctor.

Definition at line 39 of file kexidragobjects.cpp.


Member Function Documentation

bool KexiFieldDrag::canDecodeSingle ( QMimeSource *  e  )  [static]

Returns:
true if event e (of class QDragMoveEvent or QDropEvent) can be decoded as "kexi/field" data

Definition at line 63 of file kexidragobjects.cpp.

bool KexiFieldDrag::canDecodeMultiple ( QMimeSource *  e  )  [static]

Returns:
true if event e (of class QDragMoveEvent or QDropEvent) can be decoded as "kexi/fields" data. If decoding of "kexi/field" type is supported, decoding of "kexi/fields" is always supported.

Definition at line 69 of file kexidragobjects.cpp.

bool KexiFieldDrag::decodeSingle ( QDropEvent *  e,
QString &  sourceMimeType,
QString &  sourceName,
QString &  field 
) [static]

Decodes data of single-field drag ("kexi/field" mime type) coming with event e. Sets sourceMimeType, sourceName and field.

Returns:
true on successful decoding (e will be accepted in such case).

Definition at line 75 of file kexidragobjects.cpp.

bool KexiFieldDrag::decodeMultiple ( QDropEvent *  e,
QString &  sourceMimeType,
QString &  sourceName,
QStringList &  fields 
) [static]

Decodes data of multiple-field drag ("kexi/fields" mime type) coming with event e. Sets sourceMimeType, sourceName and fields. Also works with "kexi/field" data.

Returns:
true on successful decoding (e will be accepted in such case).

Definition at line 91 of file kexidragobjects.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys