Compare commits
2 Commits
master
...
work/nvrwh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90829e4959 | ||
|
|
6a1ff37011 |
@@ -13,7 +13,7 @@ import org.kde.kitemmodels
|
|||||||
|
|
||||||
import org.kde.neochat
|
import org.kde.neochat
|
||||||
|
|
||||||
Delegates.RoundedItemDelegate {
|
QQC2.ItemDelegate {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
required property int index
|
required property int index
|
||||||
@@ -45,6 +45,14 @@ Delegates.RoundedItemDelegate {
|
|||||||
Keys.onEnterPressed: clicked()
|
Keys.onEnterPressed: clicked()
|
||||||
Keys.onReturnPressed: 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 {
|
TapHandler {
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onTapped: (eventPoint, button) => root.createRoomListContextMenu()
|
onTapped: (eventPoint, button) => root.createRoomListContextMenu()
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ Kirigami.Page {
|
|||||||
id: treeView
|
id: treeView
|
||||||
topMargin: Math.round(Kirigami.Units.smallSpacing / 2)
|
topMargin: Math.round(Kirigami.Units.smallSpacing / 2)
|
||||||
|
|
||||||
|
alternatingRows: false
|
||||||
clip: true
|
clip: true
|
||||||
reuseItems: false
|
reuseItems: false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user