diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-01 18:54:51 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-01 18:54:51 +0800 |
| commit | 4c5a2322d0cd8788357293988958787f9e518e7c (patch) | |
| tree | db13493d38cf8072be699df8e016e5f3219ad11d /popups | |
| parent | 661a39128a6bac569bc1c3881094ab486ac2bf24 (diff) | |
DuckDuckGo: allow scrolling
Diffstat (limited to 'popups')
| -rw-r--r-- | popups/launcher/components/DuckDuckGo.qml | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/popups/launcher/components/DuckDuckGo.qml b/popups/launcher/components/DuckDuckGo.qml index 0514b66..9c36c79 100644 --- a/popups/launcher/components/DuckDuckGo.qml +++ b/popups/launcher/components/DuckDuckGo.qml @@ -1,5 +1,6 @@ import Quickshell import QtQuick +import QtQuick.Controls import QtQuick.Layouts import qs.components @@ -123,23 +124,31 @@ IComponent { } } - ITextEdit { - animate: true - + ScrollView { + id: scroll Layout.fillWidth: true + contentWidth: availableWidth Layout.fillHeight: true + clip: true + + ITextEdit { + id: text + height: scroll.contentHeight + animate: true + width: scroll.contentWidth + + readOnly: true + renderType: Text.CurveRendering + visible: valid && DuckDuckGo.title + text: DuckDuckGo.title ? DuckDuckGo.description_html : '' + font { + pixelSize: Launcher.widgetFontSize + } - readOnly: true - renderType: Text.CurveRendering - visible: valid && DuckDuckGo.title - text: DuckDuckGo.title ? DuckDuckGo.description_html : '' - font { - pixelSize: Launcher.widgetFontSize - } - - TapHandler { - gesturePolicy: TapHandler.DragThreshold - onTapped: expand = !expand + TapHandler { + gesturePolicy: TapHandler.DragThreshold + onTapped: expand = !expand + } } } } |
