add keyboard shortcut for reload and view profile to context menu
This commit is contained in:
parent
966c524d06
commit
7306635fc6
7 changed files with 44 additions and 29 deletions
|
@ -1,5 +1,5 @@
|
||||||
1
|
1
|
||||||
38
|
39
|
||||||
AppCover.qml
|
AppCover.qml
|
||||||
icons/at.png
|
icons/at.png
|
||||||
icons/bell-slash.png
|
icons/bell-slash.png
|
||||||
|
@ -12,6 +12,7 @@ icons/ic_add.png
|
||||||
icons/ic_add_bookmarks.png
|
icons/ic_add_bookmarks.png
|
||||||
icons/ic_cancel.png
|
icons/ic_cancel.png
|
||||||
icons/ic_compose.png
|
icons/ic_compose.png
|
||||||
|
icons/ic_contact.png
|
||||||
icons/ic_del_bookmarks.png
|
icons/ic_del_bookmarks.png
|
||||||
icons/ic_favorite.png
|
icons/ic_favorite.png
|
||||||
icons/ic_reload.png
|
icons/ic_reload.png
|
||||||
|
|
|
@ -64,7 +64,6 @@ Container {
|
||||||
text: "<a href=\"#profile\">" + ListItemData.user.username + "</a>"
|
text: "<a href=\"#profile\">" + ListItemData.user.username + "</a>"
|
||||||
activeTextHandler: ActiveTextHandler {
|
activeTextHandler: ActiveTextHandler {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
console.log("duh: " + ListItemData.user.username)
|
|
||||||
postitem.ListItem.view.viewProfile(ListItemData.user)
|
postitem.ListItem.view.viewProfile(ListItemData.user)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -212,6 +211,13 @@ Container {
|
||||||
// replySheet.input.requestFocus();
|
// replySheet.input.requestFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ActionItem {
|
||||||
|
title: qsTr("View Profile")
|
||||||
|
imageSource: "asset:///icons/ic_contact.png"
|
||||||
|
onTriggered: {
|
||||||
|
postitem.ListItem.view.viewProfile(ListItemData.user)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
attachedObjects: [
|
attachedObjects: [
|
||||||
|
|
|
@ -153,6 +153,11 @@ NavigationPane {
|
||||||
reload()
|
reload()
|
||||||
}
|
}
|
||||||
imageSource: "asset:///icons/ic_reload.png"
|
imageSource: "asset:///icons/ic_reload.png"
|
||||||
|
shortcuts: [
|
||||||
|
Shortcut {
|
||||||
|
key: "l"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
ActionItem {
|
ActionItem {
|
||||||
title: qsTr("To Bottom")
|
title: qsTr("To Bottom")
|
||||||
|
|
BIN
assets/icons/ic_contact.png
Normal file
BIN
assets/icons/ic_contact.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
2
buildnum
2
buildnum
|
@ -1 +1 @@
|
||||||
201
|
203
|
|
@ -86,6 +86,7 @@ config_pri_assets {
|
||||||
$$quote($$BASEDIR/assets/icons/ic_add_bookmarks.png) \
|
$$quote($$BASEDIR/assets/icons/ic_add_bookmarks.png) \
|
||||||
$$quote($$BASEDIR/assets/icons/ic_cancel.png) \
|
$$quote($$BASEDIR/assets/icons/ic_cancel.png) \
|
||||||
$$quote($$BASEDIR/assets/icons/ic_compose.png) \
|
$$quote($$BASEDIR/assets/icons/ic_compose.png) \
|
||||||
|
$$quote($$BASEDIR/assets/icons/ic_contact.png) \
|
||||||
$$quote($$BASEDIR/assets/icons/ic_del_bookmarks.png) \
|
$$quote($$BASEDIR/assets/icons/ic_del_bookmarks.png) \
|
||||||
$$quote($$BASEDIR/assets/icons/ic_favorite.png) \
|
$$quote($$BASEDIR/assets/icons/ic_favorite.png) \
|
||||||
$$quote($$BASEDIR/assets/icons/ic_reload.png) \
|
$$quote($$BASEDIR/assets/icons/ic_reload.png) \
|
||||||
|
@ -134,9 +135,6 @@ lupdate_inclusion {
|
||||||
$$quote($$BASEDIR/../src/*.cc) \
|
$$quote($$BASEDIR/../src/*.cc) \
|
||||||
$$quote($$BASEDIR/../src/*.cpp) \
|
$$quote($$BASEDIR/../src/*.cpp) \
|
||||||
$$quote($$BASEDIR/../src/*.cxx) \
|
$$quote($$BASEDIR/../src/*.cxx) \
|
||||||
$$quote($$BASEDIR/..//*.qml) \
|
|
||||||
$$quote($$BASEDIR/..//*.js) \
|
|
||||||
$$quote($$BASEDIR/..//*.qs) \
|
|
||||||
$$quote($$BASEDIR/../assets/*.qml) \
|
$$quote($$BASEDIR/../assets/*.qml) \
|
||||||
$$quote($$BASEDIR/../assets/*.js) \
|
$$quote($$BASEDIR/../assets/*.js) \
|
||||||
$$quote($$BASEDIR/../assets/*.qs) \
|
$$quote($$BASEDIR/../assets/*.qs) \
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>LoginSheet</name>
|
<name>LoginSheet</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/LoginSheet.qml" line="28"/>
|
<location filename="../assets/LoginSheet.qml" line="47"/>
|
||||||
<source>Sign In</source>
|
<source>Sign In</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -30,90 +30,95 @@
|
||||||
<context>
|
<context>
|
||||||
<name>PostItem</name>
|
<name>PostItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/PostItem.qml" line="166"/>
|
<location filename="../assets/PostItem.qml" line="165"/>
|
||||||
<source>Reply</source>
|
<source>Reply</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/PostItem.qml" line="175"/>
|
<location filename="../assets/PostItem.qml" line="174"/>
|
||||||
<source>Reply All</source>
|
<source>Reply All</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/PostItem.qml" line="185"/>
|
<location filename="../assets/PostItem.qml" line="184"/>
|
||||||
<source>Add Bookmark</source>
|
<source>Add Bookmark</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/PostItem.qml" line="185"/>
|
<location filename="../assets/PostItem.qml" line="184"/>
|
||||||
<source>Delete Bookmark</source>
|
<source>Delete Bookmark</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/PostItem.qml" line="196"/>
|
<location filename="../assets/PostItem.qml" line="195"/>
|
||||||
<source>Repost</source>
|
<source>Repost</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/PostItem.qml" line="196"/>
|
<location filename="../assets/PostItem.qml" line="195"/>
|
||||||
<source>Delete Repost</source>
|
<source>Delete Repost</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/PostItem.qml" line="207"/>
|
<location filename="../assets/PostItem.qml" line="206"/>
|
||||||
<source>Quote</source>
|
<source>Quote</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../assets/PostItem.qml" line="215"/>
|
||||||
|
<source>View Profile</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ProfilePage</name>
|
<name>ProfilePage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="105"/>
|
<location filename="../assets/ProfilePage.qml" line="124"/>
|
||||||
<source>Following</source>
|
<source>Following</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="118"/>
|
<location filename="../assets/ProfilePage.qml" line="137"/>
|
||||||
<source>Followers</source>
|
<source>Followers</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="131"/>
|
<location filename="../assets/ProfilePage.qml" line="150"/>
|
||||||
<source>Posts</source>
|
<source>Posts</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="144"/>
|
<location filename="../assets/ProfilePage.qml" line="163"/>
|
||||||
<source>Bookmarks</source>
|
<source>Bookmarks</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="160"/>
|
<location filename="../assets/ProfilePage.qml" line="179"/>
|
||||||
<source>Unfollow</source>
|
<source>Unfollow</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="160"/>
|
<location filename="../assets/ProfilePage.qml" line="179"/>
|
||||||
<source>Follow</source>
|
<source>Follow</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="173"/>
|
<location filename="../assets/ProfilePage.qml" line="192"/>
|
||||||
<source>Unmute</source>
|
<source>Unmute</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="173"/>
|
<location filename="../assets/ProfilePage.qml" line="192"/>
|
||||||
<source>Mute</source>
|
<source>Mute</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="186"/>
|
<location filename="../assets/ProfilePage.qml" line="205"/>
|
||||||
<source>Unblock</source>
|
<source>Unblock</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/ProfilePage.qml" line="186"/>
|
<location filename="../assets/ProfilePage.qml" line="205"/>
|
||||||
<source>Block</source>
|
<source>Block</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -121,7 +126,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>RefreshItem</name>
|
<name>RefreshItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/RefreshItem.qml" line="10"/>
|
<location filename="../assets/RefreshItem.qml" line="29"/>
|
||||||
<source>Load Newer</source>
|
<source>Load Newer</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -129,17 +134,17 @@
|
||||||
<context>
|
<context>
|
||||||
<name>SettingsPage</name>
|
<name>SettingsPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/SettingsPage.qml" line="7"/>
|
<location filename="../assets/SettingsPage.qml" line="26"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/SettingsPage.qml" line="26"/>
|
<location filename="../assets/SettingsPage.qml" line="45"/>
|
||||||
<source>Unified Home</source>
|
<source>Unified Home</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/SettingsPage.qml" line="31"/>
|
<location filename="../assets/SettingsPage.qml" line="50"/>
|
||||||
<source>Include mentions in home stream</source>
|
<source>Include mentions in home stream</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -157,7 +162,7 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../assets/StreamTab.qml" line="158"/>
|
<location filename="../assets/StreamTab.qml" line="163"/>
|
||||||
<source>To Bottom</source>
|
<source>To Bottom</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Reference in a new issue