blob: b2d380cbdaa8025af0ec989adbf1b31ff1aac8cb (
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
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick.Controls
ApplicationWindow {
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"
}
}
}
|