JS8Call-Improved master
Loading...
Searching...
No Matches
DateTableWidgetItem.h
Go to the documentation of this file.
1
5
6#ifndef JS8CALL_DATETABLEWIDGETITEM_H
7#define JS8CALL_DATETABLEWIDGETITEM_H
8
9#include <QTableWidgetItem>
10
18class DateItem : public QTableWidgetItem {
19public:
20 using QTableWidgetItem::QTableWidgetItem;
21
22 bool operator<(const QTableWidgetItem &other) const override {
23 return data(Qt::UserRole).toLongLong() < other.data(Qt::UserRole).toLongLong();
24 }
25};
26
27#endif // JS8CALL_DATETABLEWIDGETITEM_H
QTableWidgetItem that compares rows based on Qt::UserRole timestamp.
Definition DateTableWidgetItem.h:18