Try something for the too large context menu

This commit is contained in:
Sebastian Wolf 2021-02-14 21:57:48 +01:00
parent 22c30f334d
commit d9991cce79
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A
16 changed files with 1314 additions and 1067 deletions

View file

@ -78,6 +78,13 @@ ListItem {
chatView.manuallyScrolledToBottom = false;
}
Connections {
target: messageOptionsDrawer
onCloseRequested: {
messageListItem.highlighted = false;
}
}
Loader {
id: contextMenuLoader
active: false
@ -110,18 +117,21 @@ ListItem {
onClicked: messageListItem.editMessage()
text: qsTr("Edit Message")
}
MenuItem {
onClicked: {
Clipboard.text = Functions.getMessageText(myMessage, true, userInformation.id, true);
}
text: qsTr("Copy Message to Clipboard")
}
MenuItem {
onClicked: {
page.toggleMessageSelection(myMessage);
}
text: qsTr("Select Message")
}
MenuItem {
onClicked: {
messageOptionsDrawer.myMessage = myMessage;
messageOptionsDrawer.userInformation = userInformation;
messageListItem.highlighted = true;
messageOptionsDrawer.open = true;
}
text: qsTr("More Options...")
}
MenuItem {
onClicked: {
if (myMessage.is_pinned) {

File diff suppressed because it is too large Load diff

View file

@ -12,7 +12,7 @@ Name: harbour-fernschreiber
Summary: Fernschreiber is a Telegram client for Sailfish OS
Version: 0.7.1
Release: 2
Release: 3
Group: Qt/Qt
License: LICENSE
URL: http://werkwolf.eu/

View file

@ -1,7 +1,7 @@
Name: harbour-fernschreiber
Summary: Fernschreiber is a Telegram client for Sailfish OS
Version: 0.7.1
Release: 2
Release: 3
# The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
Group: Qt/Qt

View file

@ -435,6 +435,14 @@
<source>Location (%1/%2)</source>
<translation>Standort (%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Nachricht in die Zwischenablage kopieren</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -991,6 +999,10 @@
<source>Unpin Message</source>
<translation>Nachricht losheften</translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -435,6 +435,14 @@
<source>Location (%1/%2)</source>
<translation>Location (%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Copy Message to Clipboard</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -993,6 +1001,10 @@ messages</numerusform>
<source>Unpin Message</source>
<translation>Unpin Message</translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -435,6 +435,14 @@
<source>Location (%1/%2)</source>
<translation>Ubicación (%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Copiar</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -991,6 +999,10 @@
<source>Unpin Message</source>
<translation>Desanclar mensaje</translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -435,6 +435,14 @@
<source>Location (%1/%2)</source>
<translation>Sijainti (%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Kopioi viesti leikepöydälle</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -992,6 +1000,10 @@
<source>Unpin Message</source>
<translation>Poista viestin kiinnitys</translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -425,6 +425,14 @@
<source>Location (%1/%2)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -977,6 +985,10 @@
<source>Unpin Message</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -435,6 +435,14 @@
<source>Location (%1/%2)</source>
<translation>Posizione(%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Copia messaggio nella clipboard</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -991,6 +999,10 @@
<source>Unpin Message</source>
<translation>Togli messaggio in evidenza</translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -445,6 +445,14 @@
<source>Location (%1/%2)</source>
<translation>Lokalizacja (%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Skopiuj wiadomość do schowka</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -1005,6 +1013,10 @@
<source>Unpin Message</source>
<translation>Odepnij wiadomość</translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -445,6 +445,14 @@
<source>Location (%1/%2)</source>
<translation>Местоположение (%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Скопировать в буфер обмена</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -1008,6 +1016,10 @@
<source>Unpin Message</source>
<translation>Открепить сообщение</translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -445,6 +445,14 @@
<source>Location (%1/%2)</source>
<translation>Poloha (%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Kopírovať správu do schránky</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -1005,6 +1013,10 @@
<source>Unpin Message</source>
<translation>Odopnúť správu</translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -435,6 +435,14 @@
<source>Location (%1/%2)</source>
<translation>Plats (%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Kopiera meddelandet till urklipp</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -991,6 +999,10 @@
<source>Unpin Message</source>
<translation>Lösgör meddelandet</translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -425,6 +425,14 @@
<source>Location (%1/%2)</source>
<translation> (%1/%2)</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -978,6 +986,10 @@
<source>Unpin Message</source>
<translation></translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>

View file

@ -435,6 +435,14 @@
<source>Location (%1/%2)</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation type="unfinished">Copy Message to Clipboard</translation>
</message>
<message>
<source>Message Options</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ChatSelectionPage</name>
@ -991,6 +999,10 @@
<source>Unpin Message</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>More Options...</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MessageListViewItemSimple</name>