Make space list smaller
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
@@ -28,7 +28,7 @@ Kirigami.ScrollablePage {
|
|||||||
clip: true
|
clip: true
|
||||||
visible: spaceList.count > 0
|
visible: spaceList.count > 0
|
||||||
|
|
||||||
Layout.preferredHeight: Kirigami.Units.gridUnit * 3
|
Layout.preferredHeight: Kirigami.Units.gridUnit * 2
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
model: SortFilterSpaceListModel {
|
model: SortFilterSpaceListModel {
|
||||||
@@ -39,26 +39,28 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header: QQC2.Control {
|
header: QQC2.ItemDelegate {
|
||||||
contentItem: QQC2.RoundButton {
|
id: homeButton
|
||||||
id: homeButton
|
icon.name: "home"
|
||||||
flat: true
|
text: i18nc("@action:button", "Show All Rooms")
|
||||||
padding: Kirigami.Units.gridUnit / 2
|
height: parent.height
|
||||||
icon.name: "home"
|
width: height
|
||||||
text: i18nc("@action:button", "Show All Rooms")
|
leftPadding: topPadding
|
||||||
display: QQC2.AbstractButton.IconOnly
|
rightPadding: topPadding
|
||||||
|
|
||||||
onClicked: {
|
contentItem: Kirigami.Icon {
|
||||||
sortFilterRoomListModel.activeSpaceId = "";
|
source: "home"
|
||||||
spaceList.activeSpaceId = '';
|
|
||||||
listView.positionViewAtIndex(0, ListView.Beginning);
|
|
||||||
}
|
|
||||||
|
|
||||||
QQC2.ToolTip {
|
|
||||||
text: homeButton.text
|
|
||||||
}
|
|
||||||
Accessible.name: text
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
sortFilterRoomListModel.activeSpaceId = "";
|
||||||
|
spaceList.activeSpaceId = '';
|
||||||
|
listView.positionViewAtIndex(0, ListView.Beginning);
|
||||||
|
}
|
||||||
|
|
||||||
|
QQC2.ToolTip.text: homeButton.text
|
||||||
|
QQC2.ToolTip.visible: hovered
|
||||||
|
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||||
}
|
}
|
||||||
|
|
||||||
delegate: QQC2.ItemDelegate {
|
delegate: QQC2.ItemDelegate {
|
||||||
@@ -84,9 +86,9 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
Accessible.name: currentRoom.displayName
|
Accessible.name: currentRoom.displayName
|
||||||
|
|
||||||
QQC2.ToolTip {
|
QQC2.ToolTip.text: currentRoom.displayName
|
||||||
text: currentRoom.displayName
|
QQC2.ToolTip.visible: hovered
|
||||||
}
|
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||||
|
|
||||||
onPressAndHold: {
|
onPressAndHold: {
|
||||||
spaceList.createContextMenu(currentRoom)
|
spaceList.createContextMenu(currentRoom)
|
||||||
|
|||||||
Reference in New Issue
Block a user