Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Classes | |
struct | WidgetMapper |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 20 of file qdatawidgetmapper.cpp.
|
inline |
Definition at line 25 of file qdatawidgetmapper.cpp.
void QDataWidgetMapperPrivate::closeEditor | ( | QWidget * | w, |
QAbstractItemDelegate::EndEditHint | hint ) |
Definition at line 184 of file qdatawidgetmapper.cpp.
References QAbstractItemDelegate::EditNextItem, QAbstractItemDelegate::EditPreviousItem, findWidget(), hint(), QAbstractItemDelegate::NoHint, populate(), QAbstractItemDelegate::RevertModelCache, QAbstractItemDelegate::SubmitModelCache, and widgetMap.
Referenced by QDataWidgetMapper::setItemDelegate().
bool QDataWidgetMapperPrivate::commit | ( | const WidgetMapper & | m | ) |
Definition at line 117 of file qdatawidgetmapper.cpp.
References delegate, Qt::EditRole, model, QAbstractItemModel::setData(), and QAbstractItemDelegate::setModelData().
Definition at line 172 of file qdatawidgetmapper.cpp.
References findWidget(), QDataWidgetMapper::ManualSubmit, submitPolicy, and widgetMap.
Referenced by QDataWidgetMapper::setItemDelegate().
|
inline |
Definition at line 45 of file qdatawidgetmapper.cpp.
References QPersistentModelIndex::column(), currentTopLeft, Qt::Horizontal, orientation, and QPersistentModelIndex::row().
Referenced by indexAt().
void QDataWidgetMapperPrivate::dataChanged | ( | const QModelIndex & | topLeft, |
const QModelIndex & | bottomRight, | ||
const QList< int > & | ) |
Definition at line 160 of file qdatawidgetmapper.cpp.
References QModelIndex::parent(), populate(), qContainsIndex(), rootIndex, and widgetMap.
Referenced by QDataWidgetMapper::setModel().
|
inline |
Definition at line 83 of file qdatawidgetmapper.cpp.
References connection, delegateConnections, and QObject::disconnect().
|
inline |
Definition at line 78 of file qdatawidgetmapper.cpp.
References connection, QObject::disconnect(), and modelConnections.
int QDataWidgetMapperPrivate::findWidget | ( | QWidget * | w | ) | const |
Definition at line 108 of file qdatawidgetmapper.cpp.
References widgetMap.
Referenced by closeEditor(), and commitData().
|
inline |
Definition at line 57 of file qdatawidgetmapper.cpp.
References QObject::removeEventFilter(), and widgetMap.
|
inline |
Definition at line 50 of file qdatawidgetmapper.cpp.
References currentIdx(), Qt::Horizontal, QAbstractItemModel::index(), model, orientation, and rootIndex.
Referenced by populate().
|
inline |
Definition at line 38 of file qdatawidgetmapper.cpp.
References QAbstractItemModel::columnCount(), Qt::Horizontal, model, orientation, rootIndex, and QAbstractItemModel::rowCount().
void QDataWidgetMapperPrivate::modelDestroyed | ( | ) |
Definition at line 207 of file qdatawidgetmapper.cpp.
References model, and QAbstractItemModelPrivate::staticEmptyModel().
Referenced by QDataWidgetMapper::setModel().
void QDataWidgetMapperPrivate::populate | ( | ) |
Definition at line 147 of file qdatawidgetmapper.cpp.
References populate(), and widgetMap.
Referenced by closeEditor(), dataChanged(), and populate().
void QDataWidgetMapperPrivate::populate | ( | WidgetMapper & | m | ) |
Definition at line 135 of file qdatawidgetmapper.cpp.
References delegate, Qt::EditRole, indexAt(), and QAbstractItemDelegate::setEditorData().
QPersistentModelIndex QDataWidgetMapperPrivate::currentTopLeft |
Definition at line 36 of file qdatawidgetmapper.cpp.
Referenced by currentIdx().
QAbstractItemDelegate* QDataWidgetMapperPrivate::delegate |
Definition at line 32 of file qdatawidgetmapper.cpp.
Referenced by commit(), and populate().
std::array<QMetaObject::Connection, 2> QDataWidgetMapperPrivate::delegateConnections |
Definition at line 104 of file qdatawidgetmapper.cpp.
Referenced by disconnectDelegate().
QAbstractItemModel* QDataWidgetMapperPrivate::model |
Definition at line 31 of file qdatawidgetmapper.cpp.
Referenced by commit(), indexAt(), itemCount(), and modelDestroyed().
std::array<QMetaObject::Connection, 2> QDataWidgetMapperPrivate::modelConnections |
Definition at line 103 of file qdatawidgetmapper.cpp.
Referenced by disconnectModel().
Qt::Orientation QDataWidgetMapperPrivate::orientation |
Definition at line 33 of file qdatawidgetmapper.cpp.
Referenced by currentIdx(), indexAt(), and itemCount().
QPersistentModelIndex QDataWidgetMapperPrivate::rootIndex |
Definition at line 35 of file qdatawidgetmapper.cpp.
Referenced by dataChanged(), indexAt(), and itemCount().
QDataWidgetMapper::SubmitPolicy QDataWidgetMapperPrivate::submitPolicy |
Definition at line 34 of file qdatawidgetmapper.cpp.
Referenced by commitData().
std::vector<WidgetMapper> QDataWidgetMapperPrivate::widgetMap |
Definition at line 102 of file qdatawidgetmapper.cpp.
Referenced by closeEditor(), commitData(), dataChanged(), findWidget(), flipEventFilters(), and populate().