diff options
author | link2xt <link2xt@testrun.org> | 2021-08-28 12:03:48 +0000 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-08-28 15:05:39 +0300 |
commit | 6d2fc32a423b7b470521c67d94d9b59c168a948f (patch) | |
tree | d5eb1cdf41c769a9b7aea5677eff2f4b193452f8 /message.h | |
parent | 7767e2843c0301bb8ee64eca324707cc93dcad09 (diff) | |
download | kdeltachat-6d2fc32a423b7b470521c67d94d9b59c168a948f.tar.gz kdeltachat-6d2fc32a423b7b470521c67d94d9b59c168a948f.zip |
Show message timestamps
Diffstat (limited to 'message.h')
-rw-r--r-- | message.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,6 @@ #pragma once +#include <QDateTime> #include <QObject> #include <deltachat.h> @@ -13,6 +14,7 @@ class DcMessage : public QObject { Q_PROPERTY(uint32_t chatId READ getChatId CONSTANT) Q_PROPERTY(int viewtype READ getViewtype CONSTANT) Q_PROPERTY(int state READ getState CONSTANT) + Q_PROPERTY(QDateTime timestamp READ getTimestamp CONSTANT) Q_PROPERTY(QString text READ getText WRITE setText) Q_PROPERTY(QString subject READ getSubject CONSTANT) Q_PROPERTY(QString file READ getFile CONSTANT) @@ -37,7 +39,7 @@ public: Q_INVOKABLE uint32_t getChatId(); Q_INVOKABLE int getViewtype(); Q_INVOKABLE int getState(); - //Q_INVOKABLE int64_t getTimestamp(); + Q_INVOKABLE QDateTime getTimestamp(); //Q_INVOKABLE int64_t getReceivedTimestamp(); //Q_INVOKABLE int64_t getSortTimestamp(); Q_INVOKABLE void setText(QString); |