2
* Copyright (C) 2014-2015 Canonical, Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
import Ubuntu.Components 1.1
19
import QtQuick.Layouts 1.1
20
import Ubuntu.Components.Popups 1.0
25
property Page targetPage
26
property alias activityRunning: activity.running
34
ActivityIndicator { id: activity }
38
Layout.fillWidth: true
42
//horizontalAlignment: Text.AlignHCenter
43
elide: Text.ElideMiddle
45
font.weight: Font.DemiBold
46
text: targetPage.title
50
//horizontalAlignment: Text.AlignHCenter
51
elide: Text.ElideMiddle
54
text: file.description
61
text: (pageStack.depth > 1) ? i18n.tr("Back") : i18n.tr("Close")
63
if (pageStack.depth > 1) {
64
// Go back to Welcome page
67
// File has been imported through Content Hub (or was not chosen through WelcomePage)
68
// Close the application and show our source app (e.g. ubuntu-filemanager-app, if used to open a document)
76
objectName: "detailsAction"
77
text: i18n.tr("Details")
79
onTriggered: pageStack.push(Qt.resolvedUrl("DetailsPage.qml"))