blob: e7d34554b305f57d7ecd986f58126f1ad77120b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.0
Item {
Rectangle {
id: helpbutton; anchors { right: parent.right; bottom: parent.bottom }
height: 30; width: 30; color: "lightgray"; radius: 5; visible: qmlfiletoload == ""
Text { text: "?"; anchors.centerIn: parent; font.pointSize: 12 }
MouseArea { anchors.fill: parent; onClicked: { elementsapp.qmlfiletoload = "Help.qml" } }
}
Rectangle {
width: parent.width - (20 + helpbutton.width); height: infotext.height; radius: 5; opacity: .7; visible: infotext.text != ""
anchors { right: helpbutton.left; bottom: parent.bottom; rightMargin: 5; bottomMargin: 20 }
Text { id: infotext; text: elementsapp.helptext; width: parent.width - 10; anchors.centerIn: parent; wrapMode: Text.WordWrap }
}
}
|