6 #ifndef SWIFT_GUI_MODELS_LISTMODELTIMESTAMPOBJECTS_H
7 #define SWIFT_GUI_MODELS_LISTMODELTIMESTAMPOBJECTS_H
19 template <
typename T,
bool UseCompare = false>
41 template <
typename T,
bool UseCompare = false>
T ContainerType
Container type.
typename T::value_type ObjectType
Container element type.
QModelIndex parent(const QModelIndex &child) const final
List model for timestamp based objects with offset.
void addTimestampColumns()
Standard timestamp columns.
bool isSortedByTimestampProperty() const
Sorted by one of the timestamp columns?
T ContainerType
Container type.
typename T::value_type ObjectType
Container element type.
CListModelTimestampObjects(const QString &translationContext, QObject *parent=nullptr)
Constructor.
List model for timestamp based objects with offset.
typename T::value_type ObjectType
Container element type.
virtual ~CListModelTimestampWithOffsetObjects()
Destructor.
void addTimestampOffsetColumns()
Standard timestamp offset columns.
void push_frontKeepLatestAdjustedFirst(const ObjectType &object, int max)
Insert as first element by keeping maxElements and the latest first.
CListModelTimestampWithOffsetObjects(const QString &translationContext, QObject *parent=nullptr)
Constructor.
Models to be used with views, mainly QTableView.