[][src]Struct qt_core::QIdentityProxyModel

#[repr(C)]pub struct QIdentityProxyModel { /* fields omitted */ }

The QIdentityProxyModel class proxies its source model unmodified

C++ class: QIdentityProxyModel.

C++ documentation:

The QIdentityProxyModel class proxies its source model unmodified

QIdentityProxyModel can be used to forward the structure of a source model exactly, with no sorting, filtering or other transformation. This is similar in concept to an identity matrix where A.I = A.

Because it does no sorting or filtering, this class is most suitable to proxy models which transform the data() of the source model. For example, a proxy model could be created to define the font used, or the background colour, or the tooltip etc. This removes the need to implement all data handling in the same class that creates the structure of the model, and can also be used to create re-usable components.

This also provides a way to change the data in the case where a source model is supplied by a third party which can not be modified.

class DateFormatProxyModel : public QIdentityProxyModel { // ...

void setDateFormatString(const QString &formatString) { m_formatString = formatString; }

QVariant data(const QModelIndex &index, int role) const { if (role != Qt::DisplayRole) return QIdentityProxyModel::data(index, role);

const QDateTime dateTime = sourceModel()->data(SourceClass::DateRole).toDateTime();

return dateTime.toString(m_formatString); }

private: QString m_formatString; };

Methods

impl QIdentityProxyModel[src]

pub unsafe fn column_count_1a(
    &self,
    parent: impl CastInto<Ref<QModelIndex>>
) -> c_int
[src]

Reimplemented from QAbstractItemModel::columnCount().

Calls C++ function: virtual int QIdentityProxyModel::columnCount(const QModelIndex& parent = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::columnCount().

pub unsafe fn column_count_0a(&self) -> c_int[src]

Reimplemented from QAbstractItemModel::columnCount().

Calls C++ function: virtual int QIdentityProxyModel::columnCount() const.

C++ documentation:

Reimplemented from QAbstractItemModel::columnCount().

pub unsafe fn drop_mime_data(
    &self,
    data: impl CastInto<Ptr<QMimeData>>,
    action: DropAction,
    row: c_int,
    column: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::dropMimeData().

Calls C++ function: virtual bool QIdentityProxyModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent).

C++ documentation:

Reimplemented from QAbstractItemModel::dropMimeData().

pub unsafe fn header_data_3a(
    &self,
    section: c_int,
    orientation: Orientation,
    role: c_int
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::headerData().

Calls C++ function: virtual QVariant QIdentityProxyModel::headerData(int section, Qt::Orientation orientation, int role = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::headerData().

pub unsafe fn header_data_2a(
    &self,
    section: c_int,
    orientation: Orientation
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::headerData().

Calls C++ function: virtual QVariant QIdentityProxyModel::headerData(int section, Qt::Orientation orientation) const.

C++ documentation:

Reimplemented from QAbstractItemModel::headerData().

pub unsafe fn index_3a(
    &self,
    row: c_int,
    column: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractItemModel::index().

Calls C++ function: virtual QModelIndex QIdentityProxyModel::index(int row, int column, const QModelIndex& parent = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::index().

pub unsafe fn index_2a(&self, row: c_int, column: c_int) -> CppBox<QModelIndex>[src]

Reimplemented from QAbstractItemModel::index().

Calls C++ function: virtual QModelIndex QIdentityProxyModel::index(int row, int column) const.

C++ documentation:

Reimplemented from QAbstractItemModel::index().

pub unsafe fn insert_columns_3a(
    &self,
    column: c_int,
    count: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::insertColumns().

Calls C++ function: virtual bool QIdentityProxyModel::insertColumns(int column, int count, const QModelIndex& parent = …).

C++ documentation:

Reimplemented from QAbstractItemModel::insertColumns().

pub unsafe fn insert_columns_2a(&self, column: c_int, count: c_int) -> bool[src]

Reimplemented from QAbstractItemModel::insertColumns().

Calls C++ function: virtual bool QIdentityProxyModel::insertColumns(int column, int count).

C++ documentation:

Reimplemented from QAbstractItemModel::insertColumns().

pub unsafe fn insert_rows_3a(
    &self,
    row: c_int,
    count: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::insertRows().

Calls C++ function: virtual bool QIdentityProxyModel::insertRows(int row, int count, const QModelIndex& parent = …).

C++ documentation:

Reimplemented from QAbstractItemModel::insertRows().

pub unsafe fn insert_rows_2a(&self, row: c_int, count: c_int) -> bool[src]

Reimplemented from QAbstractItemModel::insertRows().

Calls C++ function: virtual bool QIdentityProxyModel::insertRows(int row, int count).

C++ documentation:

Reimplemented from QAbstractItemModel::insertRows().

pub unsafe fn map_from_source(
    &self,
    source_index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractProxyModel::mapFromSource().

Calls C++ function: virtual QModelIndex QIdentityProxyModel::mapFromSource(const QModelIndex& sourceIndex) const.

C++ documentation:

Reimplemented from QAbstractProxyModel::mapFromSource().

pub unsafe fn map_selection_from_source(
    &self,
    selection: impl CastInto<Ref<QItemSelection>>
) -> CppBox<QItemSelection>
[src]

Reimplemented from QAbstractProxyModel::mapSelectionFromSource().

Calls C++ function: virtual QItemSelection QIdentityProxyModel::mapSelectionFromSource(const QItemSelection& selection) const.

C++ documentation:

Reimplemented from QAbstractProxyModel::mapSelectionFromSource().

pub unsafe fn map_selection_to_source(
    &self,
    selection: impl CastInto<Ref<QItemSelection>>
) -> CppBox<QItemSelection>
[src]

Reimplemented from QAbstractProxyModel::mapSelectionToSource().

Calls C++ function: virtual QItemSelection QIdentityProxyModel::mapSelectionToSource(const QItemSelection& selection) const.

C++ documentation:

Reimplemented from QAbstractProxyModel::mapSelectionToSource().

pub unsafe fn map_to_source(
    &self,
    proxy_index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractProxyModel::mapToSource().

Calls C++ function: virtual QModelIndex QIdentityProxyModel::mapToSource(const QModelIndex& proxyIndex) const.

C++ documentation:

Reimplemented from QAbstractProxyModel::mapToSource().

pub unsafe fn match_5a(
    &self,
    start: impl CastInto<Ref<QModelIndex>>,
    role: c_int,
    value: impl CastInto<Ref<QVariant>>,
    hits: c_int,
    flags: QFlags<MatchFlag>
) -> CppBox<QListOfQModelIndex>
[src]

Reimplemented from QAbstractItemModel::match().

Calls C++ function: virtual QList<QModelIndex> QIdentityProxyModel::match(const QModelIndex& start, int role, const QVariant& value, int hits = …, QFlags<Qt::MatchFlag> flags = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::match().

pub unsafe fn match_4a(
    &self,
    start: impl CastInto<Ref<QModelIndex>>,
    role: c_int,
    value: impl CastInto<Ref<QVariant>>,
    hits: c_int
) -> CppBox<QListOfQModelIndex>
[src]

Reimplemented from QAbstractItemModel::match().

Calls C++ function: virtual QList<QModelIndex> QIdentityProxyModel::match(const QModelIndex& start, int role, const QVariant& value, int hits = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::match().

pub unsafe fn match_3a(
    &self,
    start: impl CastInto<Ref<QModelIndex>>,
    role: c_int,
    value: impl CastInto<Ref<QVariant>>
) -> CppBox<QListOfQModelIndex>
[src]

Reimplemented from QAbstractItemModel::match().

Calls C++ function: virtual QList<QModelIndex> QIdentityProxyModel::match(const QModelIndex& start, int role, const QVariant& value) const.

C++ documentation:

Reimplemented from QAbstractItemModel::match().

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QIdentityProxyModel::metaObject() const.

pub unsafe fn new_1a(
    parent: impl CastInto<Ptr<QObject>>
) -> QBox<QIdentityProxyModel>
[src]

Constructs an identity model with the given parent.

Calls C++ function: [constructor] void QIdentityProxyModel::QIdentityProxyModel(QObject* parent = …).

C++ documentation:

Constructs an identity model with the given parent.

pub unsafe fn new_0a() -> QBox<QIdentityProxyModel>[src]

The QIdentityProxyModel class proxies its source model unmodified

Calls C++ function: [constructor] void QIdentityProxyModel::QIdentityProxyModel().

C++ documentation:

The QIdentityProxyModel class proxies its source model unmodified

QIdentityProxyModel can be used to forward the structure of a source model exactly, with no sorting, filtering or other transformation. This is similar in concept to an identity matrix where A.I = A.

Because it does no sorting or filtering, this class is most suitable to proxy models which transform the data() of the source model. For example, a proxy model could be created to define the font used, or the background colour, or the tooltip etc. This removes the need to implement all data handling in the same class that creates the structure of the model, and can also be used to create re-usable components.

This also provides a way to change the data in the case where a source model is supplied by a third party which can not be modified.

class DateFormatProxyModel : public QIdentityProxyModel { // ...

void setDateFormatString(const QString &formatString) { m_formatString = formatString; }

QVariant data(const QModelIndex &index, int role) const { if (role != Qt::DisplayRole) return QIdentityProxyModel::data(index, role);

const QDateTime dateTime = sourceModel()->data(SourceClass::DateRole).toDateTime();

return dateTime.toString(m_formatString); }

private: QString m_formatString; };

pub unsafe fn parent(
    &self,
    child: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractItemModel::parent().

Calls C++ function: virtual QModelIndex QIdentityProxyModel::parent(const QModelIndex& child) const.

C++ documentation:

Reimplemented from QAbstractItemModel::parent().

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QIdentityProxyModel::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QIdentityProxyModel::qt_metacast(const char* arg1).

pub unsafe fn remove_columns_3a(
    &self,
    column: c_int,
    count: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::removeColumns().

Calls C++ function: virtual bool QIdentityProxyModel::removeColumns(int column, int count, const QModelIndex& parent = …).

C++ documentation:

Reimplemented from QAbstractItemModel::removeColumns().

pub unsafe fn remove_columns_2a(&self, column: c_int, count: c_int) -> bool[src]

Reimplemented from QAbstractItemModel::removeColumns().

Calls C++ function: virtual bool QIdentityProxyModel::removeColumns(int column, int count).

C++ documentation:

Reimplemented from QAbstractItemModel::removeColumns().

pub unsafe fn remove_rows_3a(
    &self,
    row: c_int,
    count: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::removeRows().

Calls C++ function: virtual bool QIdentityProxyModel::removeRows(int row, int count, const QModelIndex& parent = …).

C++ documentation:

Reimplemented from QAbstractItemModel::removeRows().

pub unsafe fn remove_rows_2a(&self, row: c_int, count: c_int) -> bool[src]

Reimplemented from QAbstractItemModel::removeRows().

Calls C++ function: virtual bool QIdentityProxyModel::removeRows(int row, int count).

C++ documentation:

Reimplemented from QAbstractItemModel::removeRows().

pub unsafe fn row_count_1a(
    &self,
    parent: impl CastInto<Ref<QModelIndex>>
) -> c_int
[src]

Reimplemented from QAbstractItemModel::rowCount().

Calls C++ function: virtual int QIdentityProxyModel::rowCount(const QModelIndex& parent = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::rowCount().

pub unsafe fn row_count_0a(&self) -> c_int[src]

Reimplemented from QAbstractItemModel::rowCount().

Calls C++ function: virtual int QIdentityProxyModel::rowCount() const.

C++ documentation:

Reimplemented from QAbstractItemModel::rowCount().

pub unsafe fn set_source_model(
    &self,
    source_model: impl CastInto<Ptr<QAbstractItemModel>>
)
[src]

Reimplemented from QAbstractProxyModel::setSourceModel().

Calls C++ function: virtual void QIdentityProxyModel::setSourceModel(QAbstractItemModel* sourceModel).

C++ documentation:

Reimplemented from QAbstractProxyModel::setSourceModel().

pub unsafe fn sibling(
    &self,
    row: c_int,
    column: c_int,
    idx: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractItemModel::sibling().

Calls C++ function: virtual QModelIndex QIdentityProxyModel::sibling(int row, int column, const QModelIndex& idx) const.

C++ documentation:

Reimplemented from QAbstractItemModel::sibling().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QIdentityProxyModel::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QIdentityProxyModel::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QAbstractProxyModel>

pub fn source_model_changed(&self) -> Signal<()>[src]

This property holds the source model of this proxy model.

Returns a built-in Qt signal QAbstractProxyModel::sourceModelChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This property holds the source model of this proxy model.

Access functions:

QAbstractItemModel *sourceModel() const
virtual void setSourceModel(QAbstractItemModel *sourceModel)

Notifier signal:

void sourceModelChanged()[see note below]

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

pub fn slot_reset_internal_data(&self) -> Receiver<()>[src]

Clears the roleNames of this proxy model.

Returns a built-in Qt slot QAbstractProxyModel::resetInternalData that can be passed to qt_core::Signal::connect.

C++ documentation:

Clears the roleNames of this proxy model.

pub unsafe fn buddy(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractItemModel::buddy().

Calls C++ function: virtual QModelIndex QAbstractProxyModel::buddy(const QModelIndex& index) const.

C++ documentation:

Reimplemented from QAbstractItemModel::buddy().

pub unsafe fn can_drop_mime_data(
    &self,
    data: impl CastInto<Ptr<QMimeData>>,
    action: DropAction,
    row: c_int,
    column: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::canDropMimeData().

Calls C++ function: virtual bool QAbstractProxyModel::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const.

C++ documentation:

Reimplemented from QAbstractItemModel::canDropMimeData().

This function was introduced in Qt 5.4.

pub unsafe fn can_fetch_more(
    &self,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::canFetchMore().

Calls C++ function: virtual bool QAbstractProxyModel::canFetchMore(const QModelIndex& parent) const.

C++ documentation:

Reimplemented from QAbstractItemModel::canFetchMore().

pub unsafe fn data_2a(
    &self,
    proxy_index: impl CastInto<Ref<QModelIndex>>,
    role: c_int
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::data().

Calls C++ function: virtual QVariant QAbstractProxyModel::data(const QModelIndex& proxyIndex, int role = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::data().

See also setData().

pub unsafe fn data_1a(
    &self,
    proxy_index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::data().

Calls C++ function: virtual QVariant QAbstractProxyModel::data(const QModelIndex& proxyIndex) const.

C++ documentation:

Reimplemented from QAbstractItemModel::data().

See also setData().

pub unsafe fn drop_mime_data(
    &self,
    data: impl CastInto<Ptr<QMimeData>>,
    action: DropAction,
    row: c_int,
    column: c_int,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::dropMimeData().

Calls C++ function: virtual bool QAbstractProxyModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent).

C++ documentation:

Reimplemented from QAbstractItemModel::dropMimeData().

This function was introduced in Qt 5.4.

pub unsafe fn fetch_more(&self, parent: impl CastInto<Ref<QModelIndex>>)[src]

Reimplemented from QAbstractItemModel::fetchMore().

Calls C++ function: virtual void QAbstractProxyModel::fetchMore(const QModelIndex& parent).

C++ documentation:

Reimplemented from QAbstractItemModel::fetchMore().

pub unsafe fn flags(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> QFlags<ItemFlag>
[src]

Reimplemented from QAbstractItemModel::flags().

Calls C++ function: virtual QFlags<Qt::ItemFlag> QAbstractProxyModel::flags(const QModelIndex& index) const.

C++ documentation:

Reimplemented from QAbstractItemModel::flags().

pub unsafe fn has_children_1a(
    &self,
    parent: impl CastInto<Ref<QModelIndex>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::hasChildren().

Calls C++ function: virtual bool QAbstractProxyModel::hasChildren(const QModelIndex& parent = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::hasChildren().

pub unsafe fn has_children_0a(&self) -> bool[src]

Reimplemented from QAbstractItemModel::hasChildren().

Calls C++ function: virtual bool QAbstractProxyModel::hasChildren() const.

C++ documentation:

Reimplemented from QAbstractItemModel::hasChildren().

pub unsafe fn header_data_3a(
    &self,
    section: c_int,
    orientation: Orientation,
    role: c_int
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::headerData().

Calls C++ function: virtual QVariant QAbstractProxyModel::headerData(int section, Qt::Orientation orientation, int role = …) const.

C++ documentation:

Reimplemented from QAbstractItemModel::headerData().

See also setHeaderData().

pub unsafe fn header_data_2a(
    &self,
    section: c_int,
    orientation: Orientation
) -> CppBox<QVariant>
[src]

Reimplemented from QAbstractItemModel::headerData().

Calls C++ function: virtual QVariant QAbstractProxyModel::headerData(int section, Qt::Orientation orientation) const.

C++ documentation:

Reimplemented from QAbstractItemModel::headerData().

See also setHeaderData().

pub unsafe fn item_data(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QMapOfIntQVariant>
[src]

Reimplemented from QAbstractItemModel::itemData().

Calls C++ function: virtual QMap<int, QVariant> QAbstractProxyModel::itemData(const QModelIndex& index) const.

C++ documentation:

Reimplemented from QAbstractItemModel::itemData().

See also setItemData().

pub unsafe fn map_from_source(
    &self,
    source_index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplement this function to return the model index in the proxy model that corresponds to the sourceIndex from the source model.

Calls C++ function: pure virtual QModelIndex QAbstractProxyModel::mapFromSource(const QModelIndex& sourceIndex) const.

C++ documentation:

Reimplement this function to return the model index in the proxy model that corresponds to the sourceIndex from the source model.

See also mapToSource().

pub unsafe fn map_selection_from_source(
    &self,
    selection: impl CastInto<Ref<QItemSelection>>
) -> CppBox<QItemSelection>
[src]

Returns a proxy selection mapped from the specified sourceSelection.

Calls C++ function: virtual QItemSelection QAbstractProxyModel::mapSelectionFromSource(const QItemSelection& selection) const.

C++ documentation:

Returns a proxy selection mapped from the specified sourceSelection.

Reimplement this method to map source selections to proxy selections.

pub unsafe fn map_selection_to_source(
    &self,
    selection: impl CastInto<Ref<QItemSelection>>
) -> CppBox<QItemSelection>
[src]

Returns a source selection mapped from the specified proxySelection.

Calls C++ function: virtual QItemSelection QAbstractProxyModel::mapSelectionToSource(const QItemSelection& selection) const.

C++ documentation:

Returns a source selection mapped from the specified proxySelection.

Reimplement this method to map proxy selections to source selections.

pub unsafe fn map_to_source(
    &self,
    proxy_index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplement this function to return the model index in the source model that corresponds to the proxyIndex in the proxy model.

Calls C++ function: pure virtual QModelIndex QAbstractProxyModel::mapToSource(const QModelIndex& proxyIndex) const.

C++ documentation:

Reimplement this function to return the model index in the source model that corresponds to the proxyIndex in the proxy model.

See also mapFromSource().

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QAbstractProxyModel::metaObject() const.

pub unsafe fn mime_data(
    &self,
    indexes: impl CastInto<Ref<QListOfQModelIndex>>
) -> QPtr<QMimeData>
[src]

Reimplemented from QAbstractItemModel::mimeData().

Calls C++ function: virtual QMimeData* QAbstractProxyModel::mimeData(const QList<QModelIndex>& indexes) const.

C++ documentation:

Reimplemented from QAbstractItemModel::mimeData().

pub unsafe fn mime_types(&self) -> CppBox<QStringList>[src]

Reimplemented from QAbstractItemModel::mimeTypes().

Calls C++ function: virtual QStringList QAbstractProxyModel::mimeTypes() const.

C++ documentation:

Reimplemented from QAbstractItemModel::mimeTypes().

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QAbstractProxyModel::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QAbstractProxyModel::qt_metacast(const char* arg1).

pub unsafe fn revert(&self)[src]

Reimplemented from QAbstractItemModel::revert().

Calls C++ function: virtual void QAbstractProxyModel::revert().

C++ documentation:

Reimplemented from QAbstractItemModel::revert().

pub unsafe fn set_data_3a(
    &self,
    index: impl CastInto<Ref<QModelIndex>>,
    value: impl CastInto<Ref<QVariant>>,
    role: c_int
) -> bool
[src]

Reimplemented from QAbstractItemModel::setData().

Calls C++ function: virtual bool QAbstractProxyModel::setData(const QModelIndex& index, const QVariant& value, int role = …).

C++ documentation:

Reimplemented from QAbstractItemModel::setData().

See also data().

pub unsafe fn set_data_2a(
    &self,
    index: impl CastInto<Ref<QModelIndex>>,
    value: impl CastInto<Ref<QVariant>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::setData().

Calls C++ function: virtual bool QAbstractProxyModel::setData(const QModelIndex& index, const QVariant& value).

C++ documentation:

Reimplemented from QAbstractItemModel::setData().

See also data().

pub unsafe fn set_header_data_4a(
    &self,
    section: c_int,
    orientation: Orientation,
    value: impl CastInto<Ref<QVariant>>,
    role: c_int
) -> bool
[src]

Reimplemented from QAbstractItemModel::setHeaderData().

Calls C++ function: virtual bool QAbstractProxyModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = …).

C++ documentation:

Reimplemented from QAbstractItemModel::setHeaderData().

See also headerData().

pub unsafe fn set_header_data_3a(
    &self,
    section: c_int,
    orientation: Orientation,
    value: impl CastInto<Ref<QVariant>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::setHeaderData().

Calls C++ function: virtual bool QAbstractProxyModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value).

C++ documentation:

Reimplemented from QAbstractItemModel::setHeaderData().

See also headerData().

pub unsafe fn set_item_data(
    &self,
    index: impl CastInto<Ref<QModelIndex>>,
    roles: impl CastInto<Ref<QMapOfIntQVariant>>
) -> bool
[src]

Reimplemented from QAbstractItemModel::setItemData().

Calls C++ function: virtual bool QAbstractProxyModel::setItemData(const QModelIndex& index, const QMap<int, QVariant>& roles).

C++ documentation:

Reimplemented from QAbstractItemModel::setItemData().

See also itemData().

pub unsafe fn set_source_model(
    &self,
    source_model: impl CastInto<Ptr<QAbstractItemModel>>
)
[src]

Sets the given sourceModel to be processed by the proxy model.

Calls C++ function: virtual void QAbstractProxyModel::setSourceModel(QAbstractItemModel* sourceModel).

C++ documentation:

Sets the given sourceModel to be processed by the proxy model.

Subclasses should call beginResetModel() at the beginning of the method, disconnect from the old model, call this method, connect to the new model, and call endResetModel().

Note: Setter function for property sourceModel.

See also sourceModel().

pub unsafe fn sibling(
    &self,
    row: c_int,
    column: c_int,
    idx: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QModelIndex>
[src]

Reimplemented from QAbstractItemModel::sibling().

Calls C++ function: virtual QModelIndex QAbstractProxyModel::sibling(int row, int column, const QModelIndex& idx) const.

C++ documentation:

Reimplemented from QAbstractItemModel::sibling().

pub unsafe fn sort_2a(&self, column: c_int, order: SortOrder)[src]

Reimplemented from QAbstractItemModel::sort().

Calls C++ function: virtual void QAbstractProxyModel::sort(int column, Qt::SortOrder order = …).

C++ documentation:

Reimplemented from QAbstractItemModel::sort().

pub unsafe fn sort_1a(&self, column: c_int)[src]

Reimplemented from QAbstractItemModel::sort().

Calls C++ function: virtual void QAbstractProxyModel::sort(int column).

C++ documentation:

Reimplemented from QAbstractItemModel::sort().

pub unsafe fn source_model(&self) -> QPtr<QAbstractItemModel>[src]

This property holds the source model of this proxy model.

Calls C++ function: QAbstractItemModel* QAbstractProxyModel::sourceModel() const.

C++ documentation:

This property holds the source model of this proxy model.

Access functions:

QAbstractItemModel *sourceModel() const
virtual void setSourceModel(QAbstractItemModel *sourceModel)

Notifier signal:

void sourceModelChanged()[see note below]

Note: This is a private signal. It can be used in signal connections but cannot be emitted by the user.

pub unsafe fn span(
    &self,
    index: impl CastInto<Ref<QModelIndex>>
) -> CppBox<QSize>
[src]

Reimplemented from QAbstractItemModel::span().

Calls C++ function: virtual QSize QAbstractProxyModel::span(const QModelIndex& index) const.

C++ documentation:

Reimplemented from QAbstractItemModel::span().

pub unsafe fn submit(&self) -> bool[src]

Reimplemented from QAbstractItemModel::submit().

Calls C++ function: virtual bool QAbstractProxyModel::submit().

C++ documentation:

Reimplemented from QAbstractItemModel::submit().

pub unsafe fn supported_drag_actions(&self) -> QFlags<DropAction>[src]

Reimplemented from QAbstractItemModel::supportedDragActions().

Calls C++ function: virtual QFlags<Qt::DropAction> QAbstractProxyModel::supportedDragActions() const.

C++ documentation:

Reimplemented from QAbstractItemModel::supportedDragActions().

pub unsafe fn supported_drop_actions(&self) -> QFlags<DropAction>[src]

Reimplemented from QAbstractItemModel::supportedDropActions().

Calls C++ function: virtual QFlags<Qt::DropAction> QAbstractProxyModel::supportedDropActions() const.

C++ documentation:

Reimplemented from QAbstractItemModel::supportedDropActions().

Trait Implementations

impl CppDeletable for QIdentityProxyModel[src]

unsafe fn delete(&self)[src]

Destroys this identity model.

Calls C++ function: virtual [destructor] void QIdentityProxyModel::~QIdentityProxyModel().

C++ documentation:

Destroys this identity model.

impl Deref for QIdentityProxyModel[src]

type Target = QAbstractProxyModel

The resulting type after dereferencing.

fn deref(&self) -> &QAbstractProxyModel[src]

Calls C++ function: QAbstractProxyModel* static_cast<QAbstractProxyModel*>(QIdentityProxyModel* ptr).

impl DynamicCast<QIdentityProxyModel> for QAbstractProxyModel[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAbstractProxyModel>
) -> Ptr<QIdentityProxyModel>
[src]

Calls C++ function: QIdentityProxyModel* dynamic_cast<QIdentityProxyModel*>(QAbstractProxyModel* ptr).

impl DynamicCast<QIdentityProxyModel> for QAbstractItemModel[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractItemModel>) -> Ptr<QIdentityProxyModel>[src]

Calls C++ function: QIdentityProxyModel* dynamic_cast<QIdentityProxyModel*>(QAbstractItemModel* ptr).

impl DynamicCast<QIdentityProxyModel> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QIdentityProxyModel>[src]

Calls C++ function: QIdentityProxyModel* dynamic_cast<QIdentityProxyModel*>(QObject* ptr).

impl StaticDowncast<QIdentityProxyModel> for QAbstractProxyModel[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractProxyModel>
) -> Ptr<QIdentityProxyModel>
[src]

Calls C++ function: QIdentityProxyModel* static_cast<QIdentityProxyModel*>(QAbstractProxyModel* ptr).

impl StaticDowncast<QIdentityProxyModel> for QAbstractItemModel[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractItemModel>
) -> Ptr<QIdentityProxyModel>
[src]

Calls C++ function: QIdentityProxyModel* static_cast<QIdentityProxyModel*>(QAbstractItemModel* ptr).

impl StaticDowncast<QIdentityProxyModel> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QIdentityProxyModel>[src]

Calls C++ function: QIdentityProxyModel* static_cast<QIdentityProxyModel*>(QObject* ptr).

impl StaticUpcast<QAbstractItemModel> for QIdentityProxyModel[src]

unsafe fn static_upcast(
    ptr: Ptr<QIdentityProxyModel>
) -> Ptr<QAbstractItemModel>
[src]

Calls C++ function: QAbstractItemModel* static_cast<QAbstractItemModel*>(QIdentityProxyModel* ptr).

impl StaticUpcast<QAbstractProxyModel> for QIdentityProxyModel[src]

unsafe fn static_upcast(
    ptr: Ptr<QIdentityProxyModel>
) -> Ptr<QAbstractProxyModel>
[src]

Calls C++ function: QAbstractProxyModel* static_cast<QAbstractProxyModel*>(QIdentityProxyModel* ptr).

impl StaticUpcast<QObject> for QIdentityProxyModel[src]

unsafe fn static_upcast(ptr: Ptr<QIdentityProxyModel>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QIdentityProxyModel* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.