-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.qml
37 lines (36 loc) · 1006 Bytes
/
MainWindow.qml
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
import QtQuick 2.0
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.0
import QtQuick.Window 2.0
Window {
id: mainWindow
title: "CanalThing"
width: 800
height: 600
minimumWidth: 200
minimumHeight: 200
maximumWidth: flight.childrenRect.width
ScrollView {
id: scrollView
anchors.fill: parent
ColumnLayout {
width: flight.childrenRect.width
height: Math.max(scrollView.viewport.height,
flight.childrenRect.height + 40)
Item { Layout.fillHeight: true } // Spacer
Flight {
id: flight
Row {
anchors.bottom: parent.bottom
BoatButton { mirror: true}
Button {
id: labelsButton
text: "Labels"
checkable: true
}
BoatButton {}
}
}
}
}
}