18 lines
384 B
C++
18 lines
384 B
C++
|
|
#ifndef DATE_TIME_DELEGATE_H
|
||
|
|
#define DATE_TIME_DELEGATE_H
|
||
|
|
|
||
|
|
#include <QDateTime>
|
||
|
|
#include <QStyledItemDelegate>
|
||
|
|
|
||
|
|
class DateTimeDelegate : public QStyledItemDelegate {
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit DateTimeDelegate(QObject *parent = nullptr);
|
||
|
|
|
||
|
|
QString displayText(const QVariant &value,
|
||
|
|
const QLocale &locale) const override;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // DATE_TIME_DELEGATE_H
|