A QSortFilterProxyModel subclass to implement custom sort behavior.
More...
#include <sortfilterproxymodel.h>
Inherits QSortFilterProxyModel.
|
virtual bool | lessThan (const QModelIndex &source_left, const QModelIndex &source_right) const override |
|
A QSortFilterProxyModel subclass to implement custom sort behavior.
Features:
- Use natural sort algorithm (e.g. to sort "X9" in front of "X10").
- Optionally don't sort the last row (needed if the last row is used to add more items instead of displaying existing items).
◆ SortFilterProxyModel() [1/3]
◆ SortFilterProxyModel() [2/3]
◆ SortFilterProxyModel() [3/3]
◆ ~SortFilterProxyModel()
◆ setKeepHeaderColumnUnsorted()
void setKeepHeaderColumnUnsorted |
( |
bool |
keep | ) |
|
|
inlinenoexcept |
◆ setKeepLastRowAtBottom()
void setKeepLastRowAtBottom |
( |
bool |
keep | ) |
|
|
inlinenoexcept |
◆ headerData()
QVariant headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ operator=()
◆ lessThan()
bool lessThan |
( |
const QModelIndex & |
source_left, |
|
|
const QModelIndex & |
source_right |
|
) |
| const |
|
overrideprotectedvirtual |
◆ mCollator
◆ mKeepHeaderColumnUnsorted
bool mKeepHeaderColumnUnsorted |
|
private |
◆ mKeepLastRowAtBottom
bool mKeepLastRowAtBottom |
|
private |
The documentation for this class was generated from the following files: