Add a parent pointer to TimeDeltaDelegate, HMSDelegate and DMSDelegate

pull/2157/head
Daniele Forsi 2024-06-09 19:14:51 +02:00
rodzic 3849b1806f
commit 2fff671a33
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -66,6 +66,9 @@
class TimeDeltaDelegate : public QStyledItemDelegate {
public:
TimeDeltaDelegate(QObject *parent = nullptr) :
QStyledItemDelegate(parent) {}
virtual QString displayText(const QVariant &value, const QLocale &locale) const override
{
(void) locale;
@ -97,6 +100,9 @@ private:
class HMSDelegate : public QStyledItemDelegate {
public:
HMSDelegate(QObject *parent = nullptr) :
QStyledItemDelegate(parent) {}
virtual QString displayText(const QVariant &value, const QLocale &locale) const override
{
(void) locale;
@ -109,6 +115,9 @@ public:
class DMSDelegate : public QStyledItemDelegate {
public:
DMSDelegate(QObject *parent = nullptr) :
QStyledItemDelegate(parent) {}
virtual QString displayText(const QVariant &value, const QLocale &locale) const override
{
(void) locale;