Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/windowswitcher/WindowSwitcher.qml
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 55 | ListView { | |||
---|---|---|---|---|---|
56 | id: thumbnailListView | 56 | id: thumbnailListView | ||
57 | model: tabBox.model | 57 | model: tabBox.model | ||
58 | spacing: units.smallSpacing | 58 | spacing: units.smallSpacing | ||
59 | highlightMoveDuration: 250 | 59 | highlightMoveDuration: 250 | ||
60 | highlightResizeDuration: 0 | 60 | highlightResizeDuration: 0 | ||
61 | 61 | | |||
62 | Connections { | 62 | Connections { | ||
63 | target: tabBox | 63 | target: tabBox | ||
64 | onCurrentIndexChanged: { | 64 | function onCurrentIndexChanged() { | ||
65 | thumbnailListView.currentIndex = tabBox.currentIndex; | 65 | thumbnailListView.currentIndex = tabBox.currentIndex; | ||
66 | thumbnailListView.positionViewAtIndex(thumbnailListView.currentIndex, ListView.Contain) | 66 | thumbnailListView.positionViewAtIndex(thumbnailListView.currentIndex, ListView.Contain) | ||
67 | } | 67 | } | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | delegate: MouseArea { | 70 | delegate: MouseArea { | ||
71 | width: thumbnailListView.width | 71 | width: thumbnailListView.width | ||
72 | height: delegateColumn.implicitHeight + 2 * delegateColumn.y | 72 | height: delegateColumn.implicitHeight + 2 * delegateColumn.y | ||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |