From 7306635fc6d40563ebedb76f99ecfa92e4888dee Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sun, 30 Oct 2016 08:03:57 -0700 Subject: [PATCH] add keyboard shortcut for reload and view profile to context menu --- assets/.assets.index | 3 ++- assets/PostItem.qml | 8 +++++- assets/StreamTab.qml | 5 ++++ assets/icons/ic_contact.png | Bin 0 -> 2118 bytes buildnum | 2 +- config.pri | 4 +-- translations/Goober.ts | 51 ++++++++++++++++++++---------------- 7 files changed, 44 insertions(+), 29 deletions(-) create mode 100644 assets/icons/ic_contact.png diff --git a/assets/.assets.index b/assets/.assets.index index aedfdc8..d19b730 100644 --- a/assets/.assets.index +++ b/assets/.assets.index @@ -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 diff --git a/assets/PostItem.qml b/assets/PostItem.qml index 12c4de5..b79a929 100644 --- a/assets/PostItem.qml +++ b/assets/PostItem.qml @@ -64,7 +64,6 @@ Container { text: "" + ListItemData.user.username + "" 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: [ diff --git a/assets/StreamTab.qml b/assets/StreamTab.qml index a189ded..d4c7564 100644 --- a/assets/StreamTab.qml +++ b/assets/StreamTab.qml @@ -153,6 +153,11 @@ NavigationPane { reload() } imageSource: "asset:///icons/ic_reload.png" + shortcuts: [ + Shortcut { + key: "l" + } + ] }, ActionItem { title: qsTr("To Bottom") diff --git a/assets/icons/ic_contact.png b/assets/icons/ic_contact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OQZnAS3u zwynHi%Zz!bOZxoeMP;o~4a)Z&94kipmA|d|Jt&U*gDCt(!u~Vw>(jn0C1fe(HXx%! zKG|WkENi+&YQEerfoS8`(WJ;?#BZ*$E9hXd}i42P!v{r#2_N;^RDN9I5)Es zdzL@g=hmBKkxk~F$COnh-boE}4!t*3x>6U$6=Q2^wag4;0G&SN={ug$8!KN$ zxF&_wOjxGJn>T8jZeAKyO*(j8{kc&w)9U=-;8+dm)bzP!yXxl*s-qnb*R)4{@A%!f zOuTXDZ5t>2W3zws(_o8vDx>WF-8FS~-B-MEiA%ijL6{?XKcxDO?5>QQOVcg2B;n3+ zW8IgVY%Uou0Oh^hb+t)zQ^&qg?P>A8omh3_Y^PCJ=TdH0wLNv$fi7Qlg8x$)xqj!F zlkCsRv8#;nEzPFFT4&2B^Mb2JA$>M@FAL1>=*c-zI9k20p(W%~cy~`3+j8jsj)`g* zKaxEVgoTS)=8WL2hiYc;mQ?TDT0rNTnY-;aT#g9Kp+TL95vVQm2!=OIMl@|H6nb=qv++26qLnFGmX=FtpclMRjDsHK_ z!=aLh#!C6oDTQ|1H`p%nxSrm*AA8;vncJv>w-xDb+@_Xj#3OCbON literal 0 HcmV?d00001 diff --git a/buildnum b/buildnum index 05cf258..5e78f1e 100644 --- a/buildnum +++ b/buildnum @@ -1 +1 @@ -201 \ No newline at end of file +203 \ No newline at end of file diff --git a/config.pri b/config.pri index 264b83a..c0bd7a0 100644 --- a/config.pri +++ b/config.pri @@ -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) \ diff --git a/translations/Goober.ts b/translations/Goober.ts index a6db05f..22cf628 100644 --- a/translations/Goober.ts +++ b/translations/Goober.ts @@ -4,7 +4,7 @@ LoginSheet - + Sign In @@ -30,90 +30,95 @@ PostItem - + Reply - + Reply All - + Add Bookmark - + Delete Bookmark - + Repost - + Delete Repost - + Quote + + + View Profile + + ProfilePage - + Following - + Followers - + Posts - + Bookmarks - + Unfollow - + Follow - + Unmute - + Mute - + Unblock - + Block @@ -121,7 +126,7 @@ RefreshItem - + Load Newer @@ -129,17 +134,17 @@ SettingsPage - + Settings - + Unified Home - + Include mentions in home stream @@ -157,7 +162,7 @@ - + To Bottom