blob: 1abaab2d62d5fe1775713640dc4928c9cdff38f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick.Window
import QtQuick.Controls
Item {
id: root
width: 360
height: button.height * 2
property Button button: children[0]
Binding { target: root.button; property: "down"; value: root.Window.active }
Binding { target: root.button.anchors; property: "bottom"; value: root.bottom }
Binding { target: root.button.anchors; property: "horizontalCenter"; value: root.horizontalCenter }
//! [1]
Button {
text: qsTr("Save")
ToolTip.visible: down
ToolTip.text: qsTr("Save the active project")
}
//! [1]
}
|