add keyboard shortcut for reload and view profile to context menu

This commit is contained in:
Morgan McMillian 2016-10-30 08:03:57 -07:00
parent 966c524d06
commit 7306635fc6
7 changed files with 44 additions and 29 deletions

View file

@ -1,5 +1,5 @@
1
38
39
AppCover.qml
icons/at.png
icons/bell-slash.png
@ -12,6 +12,7 @@ icons/ic_add.png
icons/ic_add_bookmarks.png
icons/ic_cancel.png
icons/ic_compose.png
icons/ic_contact.png
icons/ic_del_bookmarks.png
icons/ic_favorite.png
icons/ic_reload.png

View file

@ -64,7 +64,6 @@ Container {
text: "<a href=\"#profile\">" + ListItemData.user.username + "</a>"
activeTextHandler: ActiveTextHandler {
onTriggered: {
console.log("duh: " + ListItemData.user.username)
postitem.ListItem.view.viewProfile(ListItemData.user)
}
}
@ -212,6 +211,13 @@ Container {
// replySheet.input.requestFocus();
}
}
ActionItem {
title: qsTr("View Profile")
imageSource: "asset:///icons/ic_contact.png"
onTriggered: {
postitem.ListItem.view.viewProfile(ListItemData.user)
}
}
}
]
attachedObjects: [

View file

@ -153,6 +153,11 @@ NavigationPane {
reload()
}
imageSource: "asset:///icons/ic_reload.png"
shortcuts: [
Shortcut {
key: "l"
}
]
},
ActionItem {
title: qsTr("To Bottom")

BIN
assets/icons/ic_contact.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -1 +1 @@
201
203

View file

@ -86,6 +86,7 @@ config_pri_assets {
$$quote($$BASEDIR/assets/icons/ic_add_bookmarks.png) \
$$quote($$BASEDIR/assets/icons/ic_cancel.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_favorite.png) \
$$quote($$BASEDIR/assets/icons/ic_reload.png) \
@ -134,9 +135,6 @@ lupdate_inclusion {
$$quote($$BASEDIR/../src/*.cc) \
$$quote($$BASEDIR/../src/*.cpp) \
$$quote($$BASEDIR/../src/*.cxx) \
$$quote($$BASEDIR/..//*.qml) \
$$quote($$BASEDIR/..//*.js) \
$$quote($$BASEDIR/..//*.qs) \
$$quote($$BASEDIR/../assets/*.qml) \
$$quote($$BASEDIR/../assets/*.js) \
$$quote($$BASEDIR/../assets/*.qs) \

View file

@ -4,7 +4,7 @@
<context>
<name>LoginSheet</name>
<message>
<location filename="../assets/LoginSheet.qml" line="28"/>
<location filename="../assets/LoginSheet.qml" line="47"/>
<source>Sign In</source>
<translation type="unfinished"></translation>
</message>
@ -30,90 +30,95 @@
<context>
<name>PostItem</name>
<message>
<location filename="../assets/PostItem.qml" line="166"/>
<location filename="../assets/PostItem.qml" line="165"/>
<source>Reply</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="175"/>
<location filename="../assets/PostItem.qml" line="174"/>
<source>Reply All</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="185"/>
<location filename="../assets/PostItem.qml" line="184"/>
<source>Add Bookmark</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="185"/>
<location filename="../assets/PostItem.qml" line="184"/>
<source>Delete Bookmark</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="196"/>
<location filename="../assets/PostItem.qml" line="195"/>
<source>Repost</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="196"/>
<location filename="../assets/PostItem.qml" line="195"/>
<source>Delete Repost</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="207"/>
<location filename="../assets/PostItem.qml" line="206"/>
<source>Quote</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/PostItem.qml" line="215"/>
<source>View Profile</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ProfilePage</name>
<message>
<location filename="../assets/ProfilePage.qml" line="105"/>
<location filename="../assets/ProfilePage.qml" line="124"/>
<source>Following</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ProfilePage.qml" line="118"/>
<location filename="../assets/ProfilePage.qml" line="137"/>
<source>Followers</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ProfilePage.qml" line="131"/>
<location filename="../assets/ProfilePage.qml" line="150"/>
<source>Posts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ProfilePage.qml" line="144"/>
<location filename="../assets/ProfilePage.qml" line="163"/>
<source>Bookmarks</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ProfilePage.qml" line="160"/>
<location filename="../assets/ProfilePage.qml" line="179"/>
<source>Unfollow</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ProfilePage.qml" line="160"/>
<location filename="../assets/ProfilePage.qml" line="179"/>
<source>Follow</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ProfilePage.qml" line="173"/>
<location filename="../assets/ProfilePage.qml" line="192"/>
<source>Unmute</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ProfilePage.qml" line="173"/>
<location filename="../assets/ProfilePage.qml" line="192"/>
<source>Mute</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ProfilePage.qml" line="186"/>
<location filename="../assets/ProfilePage.qml" line="205"/>
<source>Unblock</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/ProfilePage.qml" line="186"/>
<location filename="../assets/ProfilePage.qml" line="205"/>
<source>Block</source>
<translation type="unfinished"></translation>
</message>
@ -121,7 +126,7 @@
<context>
<name>RefreshItem</name>
<message>
<location filename="../assets/RefreshItem.qml" line="10"/>
<location filename="../assets/RefreshItem.qml" line="29"/>
<source>Load Newer</source>
<translation type="unfinished"></translation>
</message>
@ -129,17 +134,17 @@
<context>
<name>SettingsPage</name>
<message>
<location filename="../assets/SettingsPage.qml" line="7"/>
<location filename="../assets/SettingsPage.qml" line="26"/>
<source>Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/SettingsPage.qml" line="26"/>
<location filename="../assets/SettingsPage.qml" line="45"/>
<source>Unified Home</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/SettingsPage.qml" line="31"/>
<location filename="../assets/SettingsPage.qml" line="50"/>
<source>Include mentions in home stream</source>
<translation type="unfinished"></translation>
</message>
@ -157,7 +162,7 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../assets/StreamTab.qml" line="158"/>
<location filename="../assets/StreamTab.qml" line="163"/>
<source>To Bottom</source>
<translation type="unfinished"></translation>
</message>