Changeset View
Changeset View
Standalone View
Standalone View
src/qml/ListBrowserView.qml
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 61 | NavigationActionBar { | |||
---|---|---|---|---|---|
93 | onSort: contentModel.sortModel(order) | 93 | onSort: contentModel.sortModel(order) | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | Rectangle { | 96 | Rectangle { | ||
97 | color: myPalette.base | 97 | color: myPalette.base | ||
98 | 98 | | |||
99 | Layout.fillHeight: true | 99 | Layout.fillHeight: true | ||
100 | Layout.fillWidth: true | 100 | Layout.fillWidth: true | ||
101 | Layout.margins: 2 | ||||
101 | 102 | | |||
102 | ListView { | 103 | ListView { | ||
103 | id: contentDirectoryView | 104 | id: contentDirectoryView | ||
104 | anchors.topMargin: 20 | 105 | anchors.topMargin: 20 | ||
105 | anchors.fill: parent | 106 | anchors.fill: parent | ||
106 | 107 | | |||
107 | focus: true | | |||
108 | activeFocusOnTab: true | 108 | activeFocusOnTab: true | ||
109 | keyNavigationEnabled: true | 109 | keyNavigationEnabled: true | ||
110 | 110 | | |||
111 | currentIndex: -1 | ||||
112 | | ||||
111 | ScrollBar.vertical: ScrollBar { | 113 | ScrollBar.vertical: ScrollBar { | ||
112 | id: scrollBar | 114 | id: scrollBar | ||
113 | } | 115 | } | ||
114 | boundsBehavior: Flickable.StopAtBounds | 116 | boundsBehavior: Flickable.StopAtBounds | ||
115 | clip: true | 117 | clip: true | ||
116 | 118 | | |||
117 | ScrollHelper { | 119 | ScrollHelper { | ||
118 | id: scrollHelper | 120 | id: scrollHelper | ||
119 | flickable: contentDirectoryView | 121 | flickable: contentDirectoryView | ||
120 | anchors.fill: contentDirectoryView | 122 | anchors.fill: contentDirectoryView | ||
121 | } | 123 | } | ||
124 | | ||||
125 | onCountChanged: if (count === 0) { | ||||
126 | currentIndex = -1; | ||||
127 | } | ||||
122 | } | 128 | } | ||
123 | } | 129 | } | ||
124 | } | 130 | } | ||
125 | } | 131 | } | ||
126 | 132 | |