From 255e157d00fa9117399a377ac3dd9d9c8977c4b5 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 31 Oct 2021 11:25:55 +0300 Subject: GIFs, display names on every message and more - now we can view animated gifs ! - name are displayed on top of every message type (not just text messages and audio messages) This avoids some confusion in whether a message has been sent by us or not. - we fix the warnings of NON-NOTIFYABLE properties being used by adding one Q_PROPERTY: fileReadOnly, so we can use it to get the filename and not be bothered by console warnings. - we add some variables in Message.qml because some values were repeated and made more sense to put in a readonly var (maxH and maxW). - make scrollbar visible on hover. # Conflicts: # qml/ComposePane.qml --- message.h | 1 + 1 file changed, 1 insertion(+) (limited to 'message.h') diff --git a/message.h b/message.h index 5389124..ff58b54 100644 --- a/message.h +++ b/message.h @@ -19,6 +19,7 @@ class DcMessage : public QObject { Q_PROPERTY(QString text READ getText WRITE setText) Q_PROPERTY(QString subject READ getSubject CONSTANT) Q_PROPERTY(QString file READ getFile WRITE setFile) + Q_PROPERTY(QString fileReadOnly READ getFile CONSTANT) Q_PROPERTY(QString filename READ getFilename CONSTANT) Q_PROPERTY(int width READ getWidth CONSTANT) Q_PROPERTY(int height READ getHeight CONSTANT) -- cgit v1.2.3-70-g09d2