Compare commits

...
2 changed files with 10 additions and 1 deletions

No files matched your search

+9 -1
View File
@@ -13,7 +13,7 @@ import org.kde.kitemmodels
import org.kde.neochat
Delegates.RoundedItemDelegate {
QQC2.ItemDelegate {
id: root
required property int index
@@ -45,6 +45,14 @@ Delegates.RoundedItemDelegate {
Keys.onEnterPressed: clicked()
Keys.onReturnPressed: clicked()
leftInset: horizontalPadding / 2
rightInset: horizontalPadding / 2
// We want total spacing between consecutive list items to be
// verticalPadding. So use half that as top/bottom margin, separately
// ceiling/flooring them so that the total spacing is preserved.
topInset: Math.ceil(verticalPadding / 2)
bottomInset: Math.ceil(verticalPadding / 2)
TapHandler {
acceptedButtons: Qt.RightButton
onTapped: (eventPoint, button) => root.createRoomListContextMenu()
+1
View File
@@ -131,6 +131,7 @@ Kirigami.Page {
id: treeView
topMargin: Math.round(Kirigami.Units.smallSpacing / 2)
alternatingRows: false
clip: true
reuseItems: false