[utilities/kalk/release/26.08] src/qml: Added a scrollbar to the bottom drawer for conversion categories
Devin Lin <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit eea34522a963a7b1000eb10fa164e04a3f48dad1 by Devin Lin. Committed on 06/08/2026 at 02:35. Pushed by devinlin into branch 'release/26.08'. Added a scrollbar to the bottom drawer for conversion categories (cherry picked from commit 0aa23badb80e42a75f04c399bdb6140e1752c384) Co-authored-by: Michael Rostom <[email protected]> M +15 -14 src/qml/UnitConverter.qml https://invent.kde.org/utilities/kalk/-/commit/eea34522a963a7b1000eb10fa164e04a3f48dad1 diff --git a/src/qml/UnitConverter.qml b/src/qml/UnitConverter.qml index a87d1a7..d92db36 100644 --- a/src/qml/UnitConverter.qml +++ b/src/qml/UnitConverter.qml @@ -219,22 +219,23 @@ Kirigami.Page { height: unitConverter.height - Kirigami.Units.gridUnit * 5 parent: applicationWindow().overlay - ListView { - id: listview - model: UnitModel - clip: true - delegate: Controls.RadioDelegate { - width: ListView.view.width - ListView.view.leftMargin - ListView.view.rightMargin - text: modelData - checked: index === UnitModel.currentIndex - onClicked: { - category.text = text; - UnitModel.currentIndex = index; - categories.close(); + Controls.ScrollView{ + ListView { + id: listview + model: UnitModel + clip: true + delegate: Controls.RadioDelegate { + width: ListView.view.width - ListView.view.leftMargin - ListView.view.rightMargin + text: modelData + checked: index === UnitModel.currentIndex + onClicked: { + category.text = text; + UnitModel.currentIndex = index; + categories.close(); + } } + Component.onCompleted: category.text = listview.currentItem.text } - - Component.onCompleted: category.text = listview.currentItem.text } } }