1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-13 20:01:46 -05:00

Add a parent pointer to TimeDeltaDelegate, HMSDelegate and DMSDelegate

This commit is contained in:
Daniele Forsi 2024-06-09 19:14:51 +02:00
parent 3849b1806f
commit 2fff671a33

View File

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