Simplify UI code.

This commit is contained in:
Black Hat 2018-09-27 19:44:34 +08:00
parent d7a2e07426
commit da1e21ca9b
1 changed files with 439 additions and 445 deletions

View File

@ -2,7 +2,6 @@ import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtQuick.Controls.Material 2.2
import QtGraphicalEffects 1.0
import Spectral 0.1
import Spectral.Settings 0.1
import SortFilterProxyModel 0.2
@ -31,11 +30,7 @@ Item {
room: currentRoom
}
Control {
anchors.fill: parent
padding: 0
background: Label {
Label {
anchors.centerIn: parent
visible: !currentRoom
text: "Please choose a room."
@ -129,9 +124,9 @@ Item {
spacing: 8
boundsBehavior: Flickable.DragOverBounds
flickDeceleration: 4096
// flickDeceleration: 4096
cacheBuffer: 200
// cacheBuffer: 200
model: SortFilterProxyModel {
id: sortedRoomListModel
@ -516,4 +511,3 @@ Item {
}
}
}
}