Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Commit

Permalink
Modified action bars
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird committed Jun 11, 2017
1 parent c205050 commit dfad175
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion po/ubports.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: ubports\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-11 10:23+0000\n"
"POT-Creation-Date: 2017-06-11 10:36+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
19 changes: 12 additions & 7 deletions qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ MainView {
PageHeader {
id: mainHeader
title: mainStack.currentPage.title
trailingActionBar {
leadingActionBar {
actions: [
Action {
iconName: "home"
text: "Home"
onTriggered: mainStack.push(Qt.resolvedUrl("Home.qml"))
},
Action {
iconName: "webbrowser-app-symbolic"
text: "ubports.com"
Expand Down Expand Up @@ -75,11 +70,21 @@ MainView {
iconName: "twitter-symbolic"
text: "Twitter"
onTriggered: Qt.openUrlExternally("https://twitter.com/ubports")
},
}
]
numberOfSlots: 0
}
trailingActionBar {
actions: [
Action {
iconName: "info"
text: "About"
onTriggered: mainStack.push(Qt.resolvedUrl("About.qml"))
},
Action {
iconName: "home"
text: "Home"
onTriggered: mainStack.push(Qt.resolvedUrl("Home.qml"))
}
]
numberOfSlots: 2
Expand Down

0 comments on commit dfad175

Please sign in to comment.