Improve Kirigami
This commit is contained in:
37
qml/main.qml
37
qml/main.qml
@@ -2,7 +2,7 @@ import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12 as Controls
|
||||
import QtQuick.Layouts 1.12
|
||||
|
||||
import org.kde.kirigami 2.4 as Kirigami
|
||||
import org.kde.kirigami 2.12 as Kirigami
|
||||
|
||||
import Spectral 0.1
|
||||
import Spectral.Component 2.0
|
||||
@@ -11,28 +11,7 @@ import Spectral.Panel 2.0
|
||||
Kirigami.ApplicationWindow {
|
||||
id: root
|
||||
|
||||
globalDrawer: Kirigami.GlobalDrawer {
|
||||
title: "Hello App"
|
||||
titleIcon: "applications-graphics"
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: "View"
|
||||
iconName: "view-list-icons"
|
||||
Kirigami.Action {
|
||||
text: "action 1"
|
||||
}
|
||||
Kirigami.Action {
|
||||
text: "action 2"
|
||||
}
|
||||
Kirigami.Action {
|
||||
text: "action 3"
|
||||
}
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: "action 3"
|
||||
}
|
||||
]
|
||||
}
|
||||
globalDrawer: SpectralSidebar { }
|
||||
|
||||
contextDrawer: Kirigami.ContextDrawer {
|
||||
id: contextDrawer
|
||||
@@ -48,18 +27,18 @@ Kirigami.ApplicationWindow {
|
||||
onErrorOccured: showPassiveNotification(error + ": " + detail)
|
||||
}
|
||||
|
||||
RoomListModel {
|
||||
id: spectralRoomListModel
|
||||
|
||||
connection: spectralController.connection
|
||||
}
|
||||
|
||||
Binding {
|
||||
target: imageProvider
|
||||
property: "connection"
|
||||
value: spectralController.connection
|
||||
}
|
||||
|
||||
RoomListModel {
|
||||
id: spectralRoomListModel
|
||||
|
||||
connection: spectralController.connection
|
||||
}
|
||||
|
||||
Component {
|
||||
id: roomPanelComponent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user