blob: 81a14dc7009b71a0079cbe54c45f00b01e5c6331 (
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
28
29
30
31
32
33
34
35
36
37
|
// 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
Window {
width: 400
height: 400
id: root
property alias drawer: drawer
property alias backgroundButton: backgroundButton
property alias drawerButton: drawerButton
Button {
id: backgroundButton
text: "Background"
anchors.fill: parent
}
Drawer {
id: drawer
width: 100
height: root.height
topPadding: 2
leftPadding: 2
rightPadding: 2
bottomPadding: 2
contentItem: Button {
id: drawerButton
text: "Drawer"
}
}
}
|