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
18
class
DateItem
:
public
QTableWidgetItem {
19
public
:
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
DateItem
QTableWidgetItem that compares rows based on Qt::UserRole timestamp.
Definition
DateTableWidgetItem.h:18
JS8_Widgets
DateTableWidgetItem.h
Generated on
for JS8Call-Improved by
1.16.1