QDataWidgetMapper Class Reference

QDataWidgetMapper Class Reference

#include <qdatawidgetmapper.h>

Class Description

Definition at line 60 of file qdatawidgetmapper.h.

+ Inheritance diagram for QDataWidgetMapper:

Public Types

enum  SubmitPolicy { AutoSubmit, ManualSubmit }
 

Public Slots

void revert ()
 
bool submit ()
 
void toFirst ()
 
void toLast ()
 
void toNext ()
 
void toPrevious ()
 
virtual void setCurrentIndex (int index)
 
void setCurrentModelIndex (const QModelIndex &index)
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void currentIndexChanged (int index)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QDataWidgetMapper (QObject *parent=0)
 
 ~QDataWidgetMapper ()
 
void setModel (QAbstractItemModel *model)
 
QAbstractItemModelmodel () const
 
void setItemDelegate (QAbstractItemDelegate *delegate)
 
QAbstractItemDelegateitemDelegate () const
 
void setRootIndex (const QModelIndex &index)
 
QModelIndex rootIndex () const
 
void setOrientation (Qt::Orientation aOrientation)
 
Qt::Orientation orientation () const
 
void setSubmitPolicy (SubmitPolicy policy)
 
SubmitPolicy submitPolicy () const
 
void addMapping (QWidget *widget, int section)
 
void addMapping (QWidget *widget, int section, const QByteArray &propertyName)
 
void removeMapping (QWidget *widget)
 
int mappedSection (QWidget *widget) const
 
QByteArray mappedPropertyName (QWidget *widget) const
 
QWidgetmappedWidgetAt (int section) const
 
void clearMapping ()
 
int currentIndex () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Properties

int currentIndex
 
Qt::Orientation orientation
 
SubmitPolicy submitPolicy
 
- Properties inherited from QObject
QString objectName
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 

Member Enumeration Documentation

Enumerator
AutoSubmit 
ManualSubmit 

Definition at line 85 of file qdatawidgetmapper.h.

Constructor & Destructor Documentation

QDataWidgetMapper ( QObject parent = 0)

Member Function Documentation

void setModel ( QAbstractItemModel model)
QAbstractItemModel* model ( ) const
void setItemDelegate ( QAbstractItemDelegate delegate)
QAbstractItemDelegate* itemDelegate ( ) const
void setRootIndex ( const QModelIndex index)
QModelIndex rootIndex ( ) const
void setOrientation ( Qt::Orientation  aOrientation)
Qt::Orientation orientation ( ) const
void setSubmitPolicy ( SubmitPolicy  policy)
SubmitPolicy submitPolicy ( ) const
void addMapping ( QWidget widget,
int  section 
)
void addMapping ( QWidget widget,
int  section,
const QByteArray propertyName 
)
void removeMapping ( QWidget widget)
int mappedSection ( QWidget widget) const
QByteArray mappedPropertyName ( QWidget widget) const
QWidget* mappedWidgetAt ( int  section) const
void clearMapping ( )
int currentIndex ( ) const
void revert ( )
slot
bool submit ( )
slot
void toFirst ( )
slot
void toLast ( )
slot
void toNext ( )
slot
void toPrevious ( )
slot
virtual void setCurrentIndex ( int  index)
virtualslot
void setCurrentModelIndex ( const QModelIndex index)
slot
void currentIndexChanged ( int  index)
signal

Property Documentation

int currentIndex
readwrite

Definition at line 65 of file qdatawidgetmapper.h.

Qt::Orientation orientation
readwrite

Definition at line 66 of file qdatawidgetmapper.h.

SubmitPolicy submitPolicy
readwrite

Definition at line 67 of file qdatawidgetmapper.h.


The documentation for this class was generated from the following file: