2
import Ubuntu.Components 1.1
3
import Ubuntu.Components.Popups 1.0
8
property Page targetPage
13
anchors.centerIn: parent
17
text: targetPage.title
18
font.weight: Font.DemiBold
19
anchors.horizontalCenter: parent.horizontalCenter
23
text: targetPage.currentPage
25
anchors.horizontalCenter: parent.horizontalCenter
31
text: (pageStack.depth > 1) ? i18n.tr("Back") : i18n.tr("Close")
33
if (pageStack.depth > 1) {
34
// Go back to Welcome page
37
// File has been imported through Content Hub (or was not chosen through WelcomePage)
38
// Close the application and show our source app (e.g. ubuntu-filemanager-app, if used to open a document)
47
// onTriggered: pageMain.state = "search"
48
//Disable it until we provide search in Poppler plugin.
53
iconName: "browser-tabs"
55
onTriggered: PopupUtils.open(targetPage.goToPageDialog)
59
objectName: "detailsAction"
60
text: i18n.tr("Details")
62
onTriggered: pageStack.push(Qt.resolvedUrl("DetailsPage.qml"))