Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/TabBar.qml
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 71 | background: MouseArea { | |||
---|---|---|---|---|---|
72 | acceptedButtons: Qt.NoButton | 72 | acceptedButtons: Qt.NoButton | ||
73 | onWheel: { | 73 | onWheel: { | ||
74 | if (wheel.pixelDelta.y < 0 || wheel.angleDelta.y < 0) { | 74 | if (wheel.pixelDelta.y < 0 || wheel.angleDelta.y < 0) { | ||
75 | controlRoot.currentIndex = Math.min(controlRoot.currentIndex + 1, controlRoot.contentModel.count -1); | 75 | controlRoot.currentIndex = Math.min(controlRoot.currentIndex + 1, controlRoot.contentModel.count -1); | ||
76 | } else { | 76 | } else { | ||
77 | controlRoot.currentIndex = Math.max(controlRoot.currentIndex - 1, 0); | 77 | controlRoot.currentIndex = Math.max(controlRoot.currentIndex - 1, 0); | ||
78 | } | 78 | } | ||
79 | } | 79 | } | ||
80 | | ||||
81 | Rectangle { | | |||
82 | anchors { | | |||
83 | left: parent.left | | |||
84 | right: parent.right | | |||
85 | bottom : controlRoot.position == T.TabBar.Header ? parent.bottom : undefined | | |||
86 | top : controlRoot.position == T.TabBar.Header ? undefined : parent.top | | |||
87 | } | | |||
88 | height: 1 | | |||
89 | color: Kirigami.Theme.textColor | | |||
90 | opacity: 0.4 | | |||
91 | } | | |||
92 | } | 80 | } | ||
93 | } | 81 | } |