14#include <QSortFilterProxyModel>
59 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder)
override;
62 bool lessThan(
const QModelIndex& left,
const QModelIndex& right)
const override;
StationSortMode myMode
Definition vreStationSortProxyModel.h:65
void setAscending(bool ascending)
Sets the sort direction for the current mode and re-sorts immediately.
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override
DtVreStationSortProxyModel(QObject *parent=nullptr)
void setSortMode(StationSortMode mode)
Sets the primary sort mode and re-sorts immediately.
virtual ~DtVreStationSortProxyModel() override
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder) override
Ignores generic sort requests so re-sorting stays explicit.
bool myAscending
Definition vreStationSortProxyModel.h:66
void applyCurrentSort()
Applies the current sort mode and direction explicitly.
StationSortMode sortMode() const
Returns the current sort mode.
bool ascending() const
Returns true if sorting ascending.
Export macros for the VREngage Manager library.
#define VREMANAGER_DLL
Platform-specific export/import macro for VREngage Manager library.
Definition export.h:28
!
Definition glsVreMessageUtil.h:50
StationSortMode
Sort mode for the station list proxy.
Definition vreStationSortProxyModel.h:21
@ ByStationName
Primary: station name alpha; secondary: status priority.
Definition vreStationSortProxyModel.h:23
@ ByStatus
Primary: status priority; secondary: station name alpha.
Definition vreStationSortProxyModel.h:22