Simplify UI code.
This commit is contained in:
parent
d7a2e07426
commit
da1e21ca9b
|
@ -2,7 +2,6 @@ import QtQuick 2.9
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
import QtQuick.Controls.Material 2.2
|
import QtQuick.Controls.Material 2.2
|
||||||
import QtGraphicalEffects 1.0
|
|
||||||
import Spectral 0.1
|
import Spectral 0.1
|
||||||
import Spectral.Settings 0.1
|
import Spectral.Settings 0.1
|
||||||
import SortFilterProxyModel 0.2
|
import SortFilterProxyModel 0.2
|
||||||
|
@ -31,11 +30,7 @@ Item {
|
||||||
room: currentRoom
|
room: currentRoom
|
||||||
}
|
}
|
||||||
|
|
||||||
Control {
|
Label {
|
||||||
anchors.fill: parent
|
|
||||||
padding: 0
|
|
||||||
|
|
||||||
background: Label {
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
visible: !currentRoom
|
visible: !currentRoom
|
||||||
text: "Please choose a room."
|
text: "Please choose a room."
|
||||||
|
@ -129,9 +124,9 @@ Item {
|
||||||
spacing: 8
|
spacing: 8
|
||||||
|
|
||||||
boundsBehavior: Flickable.DragOverBounds
|
boundsBehavior: Flickable.DragOverBounds
|
||||||
flickDeceleration: 4096
|
// flickDeceleration: 4096
|
||||||
|
|
||||||
cacheBuffer: 200
|
// cacheBuffer: 200
|
||||||
|
|
||||||
model: SortFilterProxyModel {
|
model: SortFilterProxyModel {
|
||||||
id: sortedRoomListModel
|
id: sortedRoomListModel
|
||||||
|
@ -515,5 +510,4 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue