#ifndef DATEHELPER_H #define DATEHELPER_H #include class DateHelper : public QObject { Q_OBJECT public: explicit DateHelper(QObject *parent = nullptr); Q_INVOKABLE static QString friendlyTime(const QDateTime &time); }; #endif // DATEHELPER_H