Skip to content

Commit

Permalink
Fixes #3 : Adds open in browser button. Also named the buttons to be …
Browse files Browse the repository at this point in the history
…clear.
  • Loading branch information
aleixq committed May 29, 2017
1 parent 1ff4857 commit 732fdbd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions contents/ui/ArticlePage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,26 @@ PlasmaComponents.Page {
Layout.minimumWidth: units.gridUnit * 3
Layout.minimumHeight: units.gridUnit * 3
iconSource: "download-later"
text: i18n("Add to pocket")
onClicked: article.toPocket(
locationField.text) //requestOp(field)
}
PlasmaComponents.ToolButton {
id: openExternal
Layout.minimumWidth: units.gridUnit * 3
Layout.minimumHeight: units.gridUnit * 3
iconSource: "window-new"
text: i18n("Open in browser")
onClicked: {
if (locationField.text == "about:blank"){
// Means we open the article source link
Qt.openUrlExternally(article.originalLink)
} else{
// Open the current page
Qt.openUrlExternally(articleWeb.url)
}
}
}
PlasmaComponents.ToolButton {
id: backer
Layout.minimumWidth: units.gridUnit * 3 //backLabel.width+50
Expand Down

0 comments on commit 732fdbd

Please sign in to comment.