[][src]Struct qt_core::QSortFilterProxyModel

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

The QSortFilterProxyModel class provides support for sorting and filtering data passed between another model and a view.

C++ class: QSortFilterProxyModel.

C++ documentation:

The QSortFilterProxyModel class provides support for sorting and filtering data passed between another model and a view.

QSortFilterProxyModel can be used for sorting items, filtering out items, or both. The model transforms the structure of a source model by mapping the model indexes it supplies to new indexes, corresponding to different locations, for views to use. This approach allows a given source model to be restructured as far as views are concerned without requiring any transformations on the underlying data, and without duplicating the data in memory.

Let's assume that we want to sort and filter the items provided by a custom model. The code to set up the model and the view, without sorting and filtering, would look like this:

QTreeView treeView = new QTreeView; MyItemModel model = new MyItemModel(this);

treeView->setModel(model);

To add sorting and filtering support to MyItemModel, we need to create a QSortFilterProxyModel, call setSourceModel() with the MyItemModel as argument, and install the QSortFilterProxyModel on the view:

QTreeView treeView = new QTreeView; MyItemModel sourceModel = new MyItemModel(this); QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this);

proxyModel->setSourceModel(sourceModel); treeView->setModel(proxyModel);

At this point, neither sorting nor filtering is enabled; the original data is displayed in the view. Any changes made through the QSortFilterProxyModel are applied to the original model.

The QSortFilterProxyModel acts as a wrapper for the original model. If you need to convert source QModelIndexes to sorted/filtered model indexes or vice versa, use mapToSource(), mapFromSource(), mapSelectionToSource(), and mapSelectionFromSource().

Note: By default, the model dynamically re-sorts and re-filters data whenever the original model changes. This behavior can be changed by setting the dynamicSortFilter property.

The Basic Sort/Filter Model and Custom Sort/Filter Model examples illustrate how to use QSortFilterProxyModel to perform basic sorting and filtering and how to subclass it to implement custom behavior.

Methods

impl QSortFilterProxyModel[src]

pub fn slot_set_filter_reg_exp(&self) -> Receiver<(*const QString,)>[src]

This property holds the QRegExp used to filter the contents of the source model

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

C++ documentation:

This property holds the QRegExp used to filter the contents of the source model

Setting this property overwrites the current filterCaseSensitivity. By default, the QRegExp is an empty string matching all contents.

If no QRegExp or an empty string is set, everything in the source model will be accepted.

Access functions:

QRegExp filterRegExp() const
void setFilterRegExp(const QRegExp &regExp)
void setFilterRegExp(const QString &pattern)

See also filterCaseSensitivity, setFilterWildcard(), and setFilterFixedString().

pub fn slot_set_filter_wildcard(&self) -> Receiver<(*const QString,)>[src]

Sets the wildcard expression used to filter the contents of the source model to the given pattern.

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

C++ documentation:

Sets the wildcard expression used to filter the contents of the source model to the given pattern.

See also setFilterCaseSensitivity(), setFilterRegExp(), setFilterFixedString(), and filterRegExp().

pub fn slot_set_filter_fixed_string(&self) -> Receiver<(*const QString,)>[src]

Sets the fixed string used to filter the contents of the source model to the given pattern.

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

C++ documentation:

Sets the fixed string used to filter the contents of the source model to the given pattern.

See also setFilterCaseSensitivity(), setFilterRegExp(), setFilterWildcard(), and filterRegExp().

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

This function is obsolete. Use invalidate() instead.

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

C++ documentation:

This function is obsolete. Use invalidate() instead.

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

Invalidates the current sorting and filtering.

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

C++ documentation:

Invalidates the current sorting and filtering.

This function was introduced in Qt 4.3.

See also invalidateFilter().

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

Reimplemented from QAbstractItemModel::buddy().

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

C++ documentation:

Reimplemented from QAbstractItemModel::buddy().

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

Reimplemented from QAbstractItemModel::canFetchMore().

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

C++ documentation:

Reimplemented from QAbstractItemModel::canFetchMore().

pub unsafe fn clear(&self)[src]

This function is obsolete. Use invalidate() instead.

Calls C++ function: [slot] void QSortFilterProxyModel::clear().

C++ documentation:

This function is obsolete. Use invalidate() instead.

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

Reimplemented from QAbstractItemModel::columnCount().

Calls C++ function: virtual int QSortFilterProxyModel::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 QSortFilterProxyModel::columnCount() const.

C++ documentation:

Reimplemented from QAbstractItemModel::columnCount().

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

Reimplemented from QAbstractItemModel::data().

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

C++ documentation:

Reimplemented from QAbstractItemModel::data().

See also setData().

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

Reimplemented from QAbstractItemModel::data().

Calls C++ function: virtual QVariant QSortFilterProxyModel::data(const QModelIndex& index) 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 QSortFilterProxyModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent).

C++ documentation:

Reimplemented from QAbstractItemModel::dropMimeData().

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

This property holds whether the proxy model is dynamically sorted and filtered whenever the contents of the source model change

Calls C++ function: bool QSortFilterProxyModel::dynamicSortFilter() const.

C++ documentation:

This property holds whether the proxy model is dynamically sorted and filtered whenever the contents of the source model change

Note that you should not update the source model through the proxy model when dynamicSortFilter is true. For instance, if you set the proxy model on a QComboBox, then using functions that update the model, e.g., addItem(), will not work as expected. An alternative is to set dynamicSortFilter to false and call sort() after adding items to the QComboBox.

The default value is true.

This property was introduced in Qt 4.2.

Access functions:

bool dynamicSortFilter() const
void setDynamicSortFilter(bool enable)

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

Reimplemented from QAbstractItemModel::fetchMore().

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

C++ documentation:

Reimplemented from QAbstractItemModel::fetchMore().

pub unsafe fn filter_case_sensitivity(&self) -> CaseSensitivity[src]

This property holds the case sensitivity of the QRegExp pattern used to filter the contents of the source model

Calls C++ function: Qt::CaseSensitivity QSortFilterProxyModel::filterCaseSensitivity() const.

C++ documentation:

This property holds the case sensitivity of the QRegExp pattern used to filter the contents of the source model

By default, the filter is case sensitive.

Access functions:

Qt::CaseSensitivity filterCaseSensitivity() const
void setFilterCaseSensitivity(Qt::CaseSensitivity cs)

See also filterRegExp and sortCaseSensitivity.

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

This property holds the column where the key used to filter the contents of the source model is read from.

Calls C++ function: int QSortFilterProxyModel::filterKeyColumn() const.

C++ documentation:

This property holds the column where the key used to filter the contents of the source model is read from.

The default value is 0. If the value is -1, the keys will be read from all columns.

Access functions:

int filterKeyColumn() const
void setFilterKeyColumn(int column)

pub unsafe fn filter_reg_exp(&self) -> CppBox<QRegExp>[src]

This property holds the QRegExp used to filter the contents of the source model

Calls C++ function: QRegExp QSortFilterProxyModel::filterRegExp() const.

C++ documentation:

This property holds the QRegExp used to filter the contents of the source model

Setting this property overwrites the current filterCaseSensitivity. By default, the QRegExp is an empty string matching all contents.

If no QRegExp or an empty string is set, everything in the source model will be accepted.

Access functions:

QRegExp filterRegExp() const
void setFilterRegExp(const QRegExp &regExp)
void setFilterRegExp(const QString &pattern)

See also filterCaseSensitivity, setFilterWildcard(), and setFilterFixedString().

pub unsafe fn filter_regular_expression(&self) -> CppBox<QRegularExpression>[src]

This is supported on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This property holds the QRegularExpression used to filter the contents of the source model

Calls C++ function: QRegularExpression QSortFilterProxyModel::filterRegularExpression() const.

C++ documentation:

This property holds the QRegularExpression used to filter the contents of the source model

Setting this property overwrites the current filterCaseSensitivity. By default, the QRegularExpression is an empty string matching all contents.

If no QRegularExpression or an empty string is set, everything in the source model will be accepted.

This property was introduced in Qt 5.12.

Access functions:

QRegularExpression filterRegularExpression() const
void setFilterRegularExpression(const QString &pattern)
void setFilterRegularExpression(const QRegularExpression &regularExpression)

See also filterCaseSensitivity, setFilterWildcard(), and setFilterFixedString().

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

This property holds the item role that is used to query the source model's data when filtering items

Calls C++ function: int QSortFilterProxyModel::filterRole() const.

C++ documentation:

This property holds the item role that is used to query the source model's data when filtering items

The default value is Qt::DisplayRole.

This property was introduced in Qt 4.2.

Access functions:

int filterRole() const
void setFilterRole(int role)

See also filterAcceptsRow().

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

Reimplemented from QAbstractItemModel::flags().

Calls C++ function: virtual QFlags<Qt::ItemFlag> QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::headerData(int section, Qt::Orientation orientation) const.

C++ documentation:

Reimplemented from QAbstractItemModel::headerData().

See also setHeaderData().

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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::insertRows(int row, int count).

C++ documentation:

Reimplemented from QAbstractItemModel::insertRows().

pub unsafe fn invalidate(&self)[src]

Invalidates the current sorting and filtering.

Calls C++ function: [slot] void QSortFilterProxyModel::invalidate().

C++ documentation:

Invalidates the current sorting and filtering.

This function was introduced in Qt 4.3.

See also invalidateFilter().

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

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This property holds whether the filter to be applied recursively on children, and for any matching child, its parents will be visible as well.

Calls C++ function: bool QSortFilterProxyModel::isRecursiveFilteringEnabled() const.

C++ documentation:

This property holds whether the filter to be applied recursively on children, and for any matching child, its parents will be visible as well.

The default value is false.

This property was introduced in Qt 5.10.

Access functions:

bool isRecursiveFilteringEnabled() const
void setRecursiveFilteringEnabled(bool recursive)

See also filterAcceptsRow().

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

This property holds the local aware setting used for comparing strings when sorting

Calls C++ function: bool QSortFilterProxyModel::isSortLocaleAware() const.

C++ documentation:

This property holds the local aware setting used for comparing strings when sorting

By default, sorting is not local aware.

This property was introduced in Qt 4.3.

Access functions:

bool isSortLocaleAware() const
void setSortLocaleAware(bool on)

See also sortCaseSensitivity and lessThan().

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 QSortFilterProxyModel::mapFromSource(const QModelIndex& sourceIndex) const.

C++ documentation:

Reimplemented from QAbstractProxyModel::mapFromSource().

Returns the model index in the QSortFilterProxyModel given the sourceIndex from the source model.

See also mapToSource().

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

Reimplemented from QAbstractProxyModel::mapSelectionFromSource().

Calls C++ function: virtual QItemSelection QSortFilterProxyModel::mapSelectionFromSource(const QItemSelection& sourceSelection) const.

C++ documentation:

Reimplemented from QAbstractProxyModel::mapSelectionFromSource().

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

Reimplemented from QAbstractProxyModel::mapSelectionToSource().

Calls C++ function: virtual QItemSelection QSortFilterProxyModel::mapSelectionToSource(const QItemSelection& proxySelection) 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 QSortFilterProxyModel::mapToSource(const QModelIndex& proxyIndex) const.

C++ documentation:

Reimplemented from QAbstractProxyModel::mapToSource().

Returns the source model index corresponding to the given proxyIndex from the sorting filter model.

See also mapFromSource().

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> QSortFilterProxyModel::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> QSortFilterProxyModel::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> QSortFilterProxyModel::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* QSortFilterProxyModel::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* QSortFilterProxyModel::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 QSortFilterProxyModel::mimeTypes() const.

C++ documentation:

Reimplemented from QAbstractItemModel::mimeTypes().

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

Constructs a sorting filter model with the given parent.

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

C++ documentation:

Constructs a sorting filter model with the given parent.

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

The QSortFilterProxyModel class provides support for sorting and filtering data passed between another model and a view.

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

C++ documentation:

The QSortFilterProxyModel class provides support for sorting and filtering data passed between another model and a view.

QSortFilterProxyModel can be used for sorting items, filtering out items, or both. The model transforms the structure of a source model by mapping the model indexes it supplies to new indexes, corresponding to different locations, for views to use. This approach allows a given source model to be restructured as far as views are concerned without requiring any transformations on the underlying data, and without duplicating the data in memory.

Let's assume that we want to sort and filter the items provided by a custom model. The code to set up the model and the view, without sorting and filtering, would look like this:

QTreeView treeView = new QTreeView; MyItemModel model = new MyItemModel(this);

treeView->setModel(model);

To add sorting and filtering support to MyItemModel, we need to create a QSortFilterProxyModel, call setSourceModel() with the MyItemModel as argument, and install the QSortFilterProxyModel on the view:

QTreeView treeView = new QTreeView; MyItemModel sourceModel = new MyItemModel(this); QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this);

proxyModel->setSourceModel(sourceModel); treeView->setModel(proxyModel);

At this point, neither sorting nor filtering is enabled; the original data is displayed in the view. Any changes made through the QSortFilterProxyModel are applied to the original model.

The QSortFilterProxyModel acts as a wrapper for the original model. If you need to convert source QModelIndexes to sorted/filtered model indexes or vice versa, use mapToSource(), mapFromSource(), mapSelectionToSource(), and mapSelectionFromSource().

Note: By default, the model dynamically re-sorts and re-filters data whenever the original model changes. This behavior can be changed by setting the dynamicSortFilter property.

The Basic Sort/Filter Model and Custom Sort/Filter Model examples illustrate how to use QSortFilterProxyModel to perform basic sorting and filtering and how to subclass it to implement custom behavior.

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

Reimplemented from QAbstractItemModel::parent().

Calls C++ function: virtual QModelIndex QSortFilterProxyModel::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 QSortFilterProxyModel::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* QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::rowCount() const.

C++ documentation:

Reimplemented from QAbstractItemModel::rowCount().

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 QSortFilterProxyModel::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 QSortFilterProxyModel::setData(const QModelIndex& index, const QVariant& value).

C++ documentation:

Reimplemented from QAbstractItemModel::setData().

See also data().

pub unsafe fn set_dynamic_sort_filter(&self, enable: bool)[src]

This property holds whether the proxy model is dynamically sorted and filtered whenever the contents of the source model change

Calls C++ function: void QSortFilterProxyModel::setDynamicSortFilter(bool enable).

C++ documentation:

This property holds whether the proxy model is dynamically sorted and filtered whenever the contents of the source model change

Note that you should not update the source model through the proxy model when dynamicSortFilter is true. For instance, if you set the proxy model on a QComboBox, then using functions that update the model, e.g., addItem(), will not work as expected. An alternative is to set dynamicSortFilter to false and call sort() after adding items to the QComboBox.

The default value is true.

This property was introduced in Qt 4.2.

Access functions:

bool dynamicSortFilter() const
void setDynamicSortFilter(bool enable)

pub unsafe fn set_filter_case_sensitivity(&self, cs: CaseSensitivity)[src]

This property holds the case sensitivity of the QRegExp pattern used to filter the contents of the source model

Calls C++ function: void QSortFilterProxyModel::setFilterCaseSensitivity(Qt::CaseSensitivity cs).

C++ documentation:

This property holds the case sensitivity of the QRegExp pattern used to filter the contents of the source model

By default, the filter is case sensitive.

Access functions:

Qt::CaseSensitivity filterCaseSensitivity() const
void setFilterCaseSensitivity(Qt::CaseSensitivity cs)

See also filterRegExp and sortCaseSensitivity.

pub unsafe fn set_filter_fixed_string(
    &self,
    pattern: impl CastInto<Ref<QString>>
)
[src]

Sets the fixed string used to filter the contents of the source model to the given pattern.

Calls C++ function: [slot] void QSortFilterProxyModel::setFilterFixedString(const QString& pattern).

C++ documentation:

Sets the fixed string used to filter the contents of the source model to the given pattern.

See also setFilterCaseSensitivity(), setFilterRegExp(), setFilterWildcard(), and filterRegExp().

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

This property holds the column where the key used to filter the contents of the source model is read from.

Calls C++ function: void QSortFilterProxyModel::setFilterKeyColumn(int column).

C++ documentation:

This property holds the column where the key used to filter the contents of the source model is read from.

The default value is 0. If the value is -1, the keys will be read from all columns.

Access functions:

int filterKeyColumn() const
void setFilterKeyColumn(int column)

pub unsafe fn set_filter_reg_exp_q_reg_exp(
    &self,
    reg_exp: impl CastInto<Ref<QRegExp>>
)
[src]

This property holds the QRegExp used to filter the contents of the source model

Calls C++ function: void QSortFilterProxyModel::setFilterRegExp(const QRegExp& regExp).

C++ documentation:

This property holds the QRegExp used to filter the contents of the source model

Setting this property overwrites the current filterCaseSensitivity. By default, the QRegExp is an empty string matching all contents.

If no QRegExp or an empty string is set, everything in the source model will be accepted.

Access functions:

QRegExp filterRegExp() const
void setFilterRegExp(const QRegExp &regExp)
void setFilterRegExp(const QString &pattern)

See also filterCaseSensitivity, setFilterWildcard(), and setFilterFixedString().

pub unsafe fn set_filter_reg_exp_q_string(
    &self,
    pattern: impl CastInto<Ref<QString>>
)
[src]

This property holds the QRegExp used to filter the contents of the source model

Calls C++ function: [slot] void QSortFilterProxyModel::setFilterRegExp(const QString& pattern).

C++ documentation:

This property holds the QRegExp used to filter the contents of the source model

Setting this property overwrites the current filterCaseSensitivity. By default, the QRegExp is an empty string matching all contents.

If no QRegExp or an empty string is set, everything in the source model will be accepted.

Access functions:

QRegExp filterRegExp() const
void setFilterRegExp(const QRegExp &regExp)
void setFilterRegExp(const QString &pattern)

See also filterCaseSensitivity, setFilterWildcard(), and setFilterFixedString().

pub unsafe fn set_filter_regular_expression_q_string(
    &self,
    pattern: impl CastInto<Ref<QString>>
)
[src]

This is supported on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This property holds the QRegularExpression used to filter the contents of the source model

Calls C++ function: void QSortFilterProxyModel::setFilterRegularExpression(const QString& pattern).

C++ documentation:

This property holds the QRegularExpression used to filter the contents of the source model

Setting this property overwrites the current filterCaseSensitivity. By default, the QRegularExpression is an empty string matching all contents.

If no QRegularExpression or an empty string is set, everything in the source model will be accepted.

This property was introduced in Qt 5.12.

Access functions:

QRegularExpression filterRegularExpression() const
void setFilterRegularExpression(const QString &pattern)
void setFilterRegularExpression(const QRegularExpression &regularExpression)

See also filterCaseSensitivity, setFilterWildcard(), and setFilterFixedString().

pub unsafe fn set_filter_regular_expression_q_regular_expression(
    &self,
    regular_expression: impl CastInto<Ref<QRegularExpression>>
)
[src]

This is supported on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This property holds the QRegularExpression used to filter the contents of the source model

Calls C++ function: void QSortFilterProxyModel::setFilterRegularExpression(const QRegularExpression& regularExpression).

C++ documentation:

This property holds the QRegularExpression used to filter the contents of the source model

Setting this property overwrites the current filterCaseSensitivity. By default, the QRegularExpression is an empty string matching all contents.

If no QRegularExpression or an empty string is set, everything in the source model will be accepted.

This property was introduced in Qt 5.12.

Access functions:

QRegularExpression filterRegularExpression() const
void setFilterRegularExpression(const QString &pattern)
void setFilterRegularExpression(const QRegularExpression &regularExpression)

See also filterCaseSensitivity, setFilterWildcard(), and setFilterFixedString().

pub unsafe fn set_filter_role(&self, role: c_int)[src]

This property holds the item role that is used to query the source model's data when filtering items

Calls C++ function: void QSortFilterProxyModel::setFilterRole(int role).

C++ documentation:

This property holds the item role that is used to query the source model's data when filtering items

The default value is Qt::DisplayRole.

This property was introduced in Qt 4.2.

Access functions:

int filterRole() const
void setFilterRole(int role)

See also filterAcceptsRow().

pub unsafe fn set_filter_wildcard(&self, pattern: impl CastInto<Ref<QString>>)[src]

Sets the wildcard expression used to filter the contents of the source model to the given pattern.

Calls C++ function: [slot] void QSortFilterProxyModel::setFilterWildcard(const QString& pattern).

C++ documentation:

Sets the wildcard expression used to filter the contents of the source model to the given pattern.

See also setFilterCaseSensitivity(), setFilterRegExp(), setFilterFixedString(), and filterRegExp().

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 QSortFilterProxyModel::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 QSortFilterProxyModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value).

C++ documentation:

Reimplemented from QAbstractItemModel::setHeaderData().

See also headerData().

pub unsafe fn set_recursive_filtering_enabled(&self, recursive: bool)[src]

This is supported on cpp_lib_version="5.11.3" or cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This property holds whether the filter to be applied recursively on children, and for any matching child, its parents will be visible as well.

Calls C++ function: void QSortFilterProxyModel::setRecursiveFilteringEnabled(bool recursive).

C++ documentation:

This property holds whether the filter to be applied recursively on children, and for any matching child, its parents will be visible as well.

The default value is false.

This property was introduced in Qt 5.10.

Access functions:

bool isRecursiveFilteringEnabled() const
void setRecursiveFilteringEnabled(bool recursive)

See also filterAcceptsRow().

pub unsafe fn set_sort_case_sensitivity(&self, cs: CaseSensitivity)[src]

This property holds the case sensitivity setting used for comparing strings when sorting

Calls C++ function: void QSortFilterProxyModel::setSortCaseSensitivity(Qt::CaseSensitivity cs).

C++ documentation:

This property holds the case sensitivity setting used for comparing strings when sorting

By default, sorting is case sensitive.

This property was introduced in Qt 4.2.

Access functions:

Qt::CaseSensitivity sortCaseSensitivity() const
void setSortCaseSensitivity(Qt::CaseSensitivity cs)

See also filterCaseSensitivity and lessThan().

pub unsafe fn set_sort_locale_aware(&self, on: bool)[src]

This property holds the local aware setting used for comparing strings when sorting

Calls C++ function: void QSortFilterProxyModel::setSortLocaleAware(bool on).

C++ documentation:

This property holds the local aware setting used for comparing strings when sorting

By default, sorting is not local aware.

This property was introduced in Qt 4.3.

Access functions:

bool isSortLocaleAware() const
void setSortLocaleAware(bool on)

See also sortCaseSensitivity and lessThan().

pub unsafe fn set_sort_role(&self, role: c_int)[src]

This property holds the item role that is used to query the source model's data when sorting items

Calls C++ function: void QSortFilterProxyModel::setSortRole(int role).

C++ documentation:

This property holds the item role that is used to query the source model's data when sorting items

The default value is Qt::DisplayRole.

This property was introduced in Qt 4.2.

Access functions:

int sortRole() const
void setSortRole(int role)

See also lessThan().

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

Reimplemented from QAbstractProxyModel::setSourceModel().

Calls C++ function: virtual void QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel::sort(int column).

C++ documentation:

Reimplemented from QAbstractItemModel::sort().

pub unsafe fn sort_case_sensitivity(&self) -> CaseSensitivity[src]

This property holds the case sensitivity setting used for comparing strings when sorting

Calls C++ function: Qt::CaseSensitivity QSortFilterProxyModel::sortCaseSensitivity() const.

C++ documentation:

This property holds the case sensitivity setting used for comparing strings when sorting

By default, sorting is case sensitive.

This property was introduced in Qt 4.2.

Access functions:

Qt::CaseSensitivity sortCaseSensitivity() const
void setSortCaseSensitivity(Qt::CaseSensitivity cs)

See also filterCaseSensitivity and lessThan().

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

the column currently used for sorting

Calls C++ function: int QSortFilterProxyModel::sortColumn() const.

C++ documentation:

the column currently used for sorting

This returns the most recently used sort column.

This function was introduced in Qt 4.5.

pub unsafe fn sort_order(&self) -> SortOrder[src]

the order currently used for sorting

Calls C++ function: Qt::SortOrder QSortFilterProxyModel::sortOrder() const.

C++ documentation:

the order currently used for sorting

This returns the most recently used sort order.

This function was introduced in Qt 4.5.

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

This property holds the item role that is used to query the source model's data when sorting items

Calls C++ function: int QSortFilterProxyModel::sortRole() const.

C++ documentation:

This property holds the item role that is used to query the source model's data when sorting items

The default value is Qt::DisplayRole.

This property was introduced in Qt 4.2.

Access functions:

int sortRole() const
void setSortRole(int role)

See also lessThan().

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

Reimplemented from QAbstractItemModel::span().

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

C++ documentation:

Reimplemented from QAbstractItemModel::span().

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

Returns a reference to the staticMetaObject field.

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

Reimplemented from QAbstractItemModel::supportedDropActions().

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

C++ documentation:

Reimplemented from QAbstractItemModel::supportedDropActions().

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

Calls C++ function: static QString QSortFilterProxyModel::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 QSortFilterProxyModel::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 QSortFilterProxyModel[src]

unsafe fn delete(&self)[src]

Destroys this sorting filter model.

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

C++ documentation:

Destroys this sorting filter model.

impl Deref for QSortFilterProxyModel[src]

type Target = QAbstractProxyModel

The resulting type after dereferencing.

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

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

impl DynamicCast<QSortFilterProxyModel> for QAbstractProxyModel[src]

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

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

impl DynamicCast<QSortFilterProxyModel> for QAbstractItemModel[src]

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

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

impl DynamicCast<QSortFilterProxyModel> for QObject[src]

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

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

impl StaticDowncast<QSortFilterProxyModel> for QAbstractProxyModel[src]

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

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

impl StaticDowncast<QSortFilterProxyModel> for QAbstractItemModel[src]

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

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

impl StaticDowncast<QSortFilterProxyModel> for QObject[src]

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

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

impl StaticUpcast<QAbstractItemModel> for QSortFilterProxyModel[src]

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

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

impl StaticUpcast<QAbstractProxyModel> for QSortFilterProxyModel[src]

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

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

impl StaticUpcast<QObject> for QSortFilterProxyModel[src]

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

Calls C++ function: QObject* static_cast<QObject*>(QSortFilterProxyModel* 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.