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