aboutsummaryrefslogtreecommitdiff
path: root/message.h
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-10-31 11:25:55 +0300
committerlink2xt <link2xt@testrun.org>2021-10-31 11:25:55 +0300
commit255e157d00fa9117399a377ac3dd9d9c8977c4b5 (patch)
tree22ea601dbb9ad159b2caeb17047b1cd41e7f32a3 /message.h
parent48c2a5d7789d742631f8774ad8969d70e5ed0b2e (diff)
downloadkdeltachat-255e157d00fa9117399a377ac3dd9d9c8977c4b5.tar.gz
kdeltachat-255e157d00fa9117399a377ac3dd9d9c8977c4b5.zip
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
Diffstat (limited to 'message.h')
-rw-r--r--message.h1
1 files changed, 1 insertions, 0 deletions
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)