Use Kirigami
This commit is contained in:
parent
5f224c1cd9
commit
c35d8b7f54
|
@ -51,6 +51,7 @@
|
|||
|
||||
import QtQuick 2.1
|
||||
import QtQuick.Controls 2.4
|
||||
import org.kde.kirigami 2.4 as Kirigami
|
||||
|
||||
//! [0]
|
||||
import QtSensors 5.0
|
||||
|
@ -58,6 +59,7 @@ import QtSensors 5.0
|
|||
|
||||
|
||||
ApplicationWindow {
|
||||
Kirigami.ApplicationWindow {
|
||||
title: "Accelerate Bubble"
|
||||
id: mainWindow
|
||||
width: 320
|
||||
|
@ -65,8 +67,15 @@ ApplicationWindow {
|
|||
visible: true
|
||||
readonly property double radians_to_degrees: 180 / Math.PI
|
||||
|
||||
header: Kirigami.ApplicationHeader {
|
||||
}
|
||||
globalDrawer: Kirigami.GlobalDrawer {
|
||||
id: leftMenu
|
||||
title: mainWindow.title
|
||||
}
|
||||
|
||||
Label {
|
||||
text: "Using QQC2"
|
||||
text: "Using QQC2 and Kirigami"
|
||||
}
|
||||
|
||||
//! [1]
|
||||
|
|
Loading…
Reference in New Issue