Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/windowswitcher/WindowSwitcher.qml
Show All 29 Lines | 29 | KWin.Switcher { | |||
---|---|---|---|---|---|
30 | id: tabBox | 30 | id: tabBox | ||
31 | 31 | | |||
32 | readonly property real screenFactor: screenGeometry.width / screenGeometry.height | 32 | readonly property real screenFactor: screenGeometry.width / screenGeometry.height | ||
33 | 33 | | |||
34 | currentIndex: thumbnailListView.currentIndex | 34 | currentIndex: thumbnailListView.currentIndex | ||
35 | 35 | | |||
36 | PlasmaCore.Dialog { | 36 | PlasmaCore.Dialog { | ||
37 | id: dialog | 37 | id: dialog | ||
38 | location: PlasmaCore.Types.LeftEdge | 38 | location: Qt.application.layoutDirection === Qt.RightToLeft ? PlasmaCore.Types.RightEdge : PlasmaCore.Types.LeftEdge | ||
39 | visible: tabBox.visible | 39 | visible: tabBox.visible | ||
40 | flags: Qt.X11BypassWindowManagerHint | 40 | flags: Qt.X11BypassWindowManagerHint | ||
41 | x: screenGeometry.x | 41 | x: screenGeometry.x + (Qt.application.layoutDirection === Qt.RightToLeft ? screenGeometry.width - width : 0) | ||
42 | y: screenGeometry.y | 42 | y: screenGeometry.y | ||
43 | 43 | | |||
44 | mainItem: PlasmaExtras.ScrollArea { | 44 | mainItem: PlasmaExtras.ScrollArea { | ||
45 | id: dialogMainItem | 45 | id: dialogMainItem | ||
46 | 46 | | |||
47 | focus: true | 47 | focus: true | ||
48 | 48 | | |||
49 | width: tabBox.screenGeometry.width * 0.15 + (__verticalScrollBar.visible ? __verticalScrollBar.width : 0) | 49 | width: tabBox.screenGeometry.width * 0.15 + (__verticalScrollBar.visible ? __verticalScrollBar.width : 0) | ||
50 | height: tabBox.screenGeometry.height - dialog.margins.top - dialog.margins.bottom | 50 | height: tabBox.screenGeometry.height - dialog.margins.top - dialog.margins.bottom | ||
51 | 51 | | |||
52 | LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft | ||||
53 | LayoutMirroring.childrenInherit: true | ||||
54 | | ||||
52 | ListView { | 55 | ListView { | ||
53 | id: thumbnailListView | 56 | id: thumbnailListView | ||
54 | model: tabBox.model | 57 | model: tabBox.model | ||
55 | spacing: units.smallSpacing | 58 | spacing: units.smallSpacing | ||
56 | highlightMoveDuration: 250 | 59 | highlightMoveDuration: 250 | ||
57 | highlightResizeDuration: 0 | 60 | highlightResizeDuration: 0 | ||
58 | 61 | | |||
59 | Connections { | 62 | Connections { | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |