2 * Copyright (C) 2018 The Qt Company Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 import QtQuick.Layouts 1.1
19 import QtQuick.Controls 2.0
25 property StackView stack: null
35 source: 'qrc:/images/Back.svg'
41 stack.pop(StackView.Immediate)
49 height: parent.width / 3
51 anchors.top: backItem.bottom
57 Layout.preferredWidth: 200
58 Layout.preferredHeight: 200
68 Layout.fillWidth: true
69 text: model.name.toUpperCase()
74 text: 'Author: ' + model.author
78 text: 'Version: ' + model.version
83 text: 'Category: ' + model.category
87 text: 'UpdateTime: ' + new Date(model.createdtime)
96 anchors.top: infoLayout.bottom
98 anchors.horizontalCenter: parent.horizontalCenter
99 source: 'qrc:/images/DividingLine.svg'
104 anchors.top: dividingLine.bottom
105 anchors.topMargin: 20
107 text: model.description