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 --- qml/ComposePane.qml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'qml/ComposePane.qml') diff --git a/qml/ComposePane.qml b/qml/ComposePane.qml index 19d2da9..b2fcf88 100644 --- a/qml/ComposePane.qml +++ b/qml/ComposePane.qml @@ -29,6 +29,28 @@ Pane { padding: 0 + Shortcut { + sequence: "Ctrl+S" + onActivated: { + if (sendButton.enabled) { + sendButton.focus = true; + sendButton.clicked(); + sendButton.focus = false; + } + } + } + + Shortcut { + sequence: "Ctrl+O" + onActivated: { + if (attachButton.enabled) { + attachButton.focus = true; + attachButton.clicked(); + attachButton.focus = false; + } + } + } + FileDialog { id: attachFileDialog -- cgit v1.2.3-70-g09d2