Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-11-12 23:02:58 +0300
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>2021-11-22 14:18:18 +0300
commit38ac585e7ca2576888df18f182aea7862b276752 (patch)
treecfde4ee603980e97a2dde5fb83ec839ed65c005d /src/gui/tray/Window.qml
parent892d289f387141cfde4959a4d5062fcea78b71e7 (diff)
Add WheelHandler to the Search result list too
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'src/gui/tray/Window.qml')
-rw-r--r--src/gui/tray/Window.qml88
1 files changed, 49 insertions, 39 deletions
diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml
index 96528a61f..631097879 100644
--- a/src/gui/tray/Window.qml
+++ b/src/gui/tray/Window.qml
@@ -651,51 +651,61 @@ Window {
iconColor: "#afafaf"
}
- ListView {
- id: unifiedSearchResultsListView
+ ScrollView {
+ id: controlRoot
+ padding: 1
+ contentWidth: availableWidth
+
+ ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
+
+ data: WheelHandler {
+ target: controlRoot.contentItem
+ }
+ visible: unifiedSearchResultsListView.count > 0
+
anchors.top: trayWindowUnifiedSearchInputContainer.bottom
anchors.left: trayWindowBackground.left
anchors.right: trayWindowBackground.right
anchors.bottom: trayWindowBackground.bottom
- spacing: 4
- visible: count > 0
- clip: true
- ScrollBar.vertical: ScrollBar {
- id: unifiedSearchResultsListViewScrollbar
- }
- keyNavigationEnabled: true
-
- reuseItems: true
-
- Accessible.role: Accessible.List
- Accessible.name: qsTr("Unified search results list")
-
- model: UserModel.currentUser.unifiedSearchResultsListModel
-
- delegate: UnifiedSearchResultListItem {
- width: unifiedSearchResultsListView.width
- height: trayWindowBackground.Style.unifiedSearchItemHeight
- isSearchInProgress: unifiedSearchResultsListView.model.isSearchInProgress
- textLeftMargin: trayWindowBackground.Style.unifiedSearchResultTextLeftMargin
- textRightMargin: trayWindowBackground.Style.unifiedSearchResultTextRightMargin
- iconWidth: trayWindowBackground.Style.unifiedSearchResulIconWidth
- iconLeftMargin: trayWindowBackground.Style.unifiedSearchResulIconLeftMargin
- titleFontSize: trayWindowBackground.Style.unifiedSearchResulTitleFontSize
- sublineFontSize: trayWindowBackground.Style.unifiedSearchResulSublineFontSize
- titleColor: trayWindowBackground.Style.unifiedSearchResulTitleColor
- sublineColor: trayWindowBackground.Style.unifiedSearchResulSublineColor
- currentFetchMoreInProgressProviderId: unifiedSearchResultsListView.model.currentFetchMoreInProgressProviderId
- fetchMoreTriggerClicked: unifiedSearchResultsListView.model.fetchMoreTriggerClicked
- resultClicked: unifiedSearchResultsListView.model.resultClicked
- ListView.onPooled: isPooled = true
- ListView.onReused: isPooled = false
- }
+ ListView {
+ id: unifiedSearchResultsListView
+ spacing: 4
+ clip: true
+
+ keyNavigationEnabled: true
+
+ reuseItems: true
+
+ Accessible.role: Accessible.List
+ Accessible.name: qsTr("Unified search results list")
+
+ model: UserModel.currentUser.unifiedSearchResultsListModel
+
+ delegate: UnifiedSearchResultListItem {
+ width: unifiedSearchResultsListView.width
+ height: trayWindowBackground.Style.unifiedSearchItemHeight
+ isSearchInProgress: unifiedSearchResultsListView.model.isSearchInProgress
+ textLeftMargin: trayWindowBackground.Style.unifiedSearchResultTextLeftMargin
+ textRightMargin: trayWindowBackground.Style.unifiedSearchResultTextRightMargin
+ iconWidth: trayWindowBackground.Style.unifiedSearchResulIconWidth
+ iconLeftMargin: trayWindowBackground.Style.unifiedSearchResulIconLeftMargin
+ titleFontSize: trayWindowBackground.Style.unifiedSearchResulTitleFontSize
+ sublineFontSize: trayWindowBackground.Style.unifiedSearchResulSublineFontSize
+ titleColor: trayWindowBackground.Style.unifiedSearchResulTitleColor
+ sublineColor: trayWindowBackground.Style.unifiedSearchResulSublineColor
+ currentFetchMoreInProgressProviderId: unifiedSearchResultsListView.model.currentFetchMoreInProgressProviderId
+ fetchMoreTriggerClicked: unifiedSearchResultsListView.model.fetchMoreTriggerClicked
+ resultClicked: unifiedSearchResultsListView.model.resultClicked
+ ListView.onPooled: isPooled = true
+ ListView.onReused: isPooled = false
+ }
- section.property: "providerName"
- section.criteria: ViewSection.FullString
- section.delegate: UnifiedSearchResultSectionItem {
- width: unifiedSearchResultsListView.width
+ section.property: "providerName"
+ section.criteria: ViewSection.FullString
+ section.delegate: UnifiedSearchResultSectionItem {
+ width: unifiedSearchResultsListView.width
+ }
}
}