Compare commits
2 Commits
work/test-
...
work/nvrwh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90829e4959 | ||
|
|
6a1ff37011 |
@@ -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()
|
||||
|
||||
@@ -131,6 +131,7 @@ Kirigami.Page {
|
||||
id: treeView
|
||||
topMargin: Math.round(Kirigami.Units.smallSpacing / 2)
|
||||
|
||||
alternatingRows: false
|
||||
clip: true
|
||||
reuseItems: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user