[utilities/kalk] src/qml: Added a scrollbar to the bottom drawer for conversion categories
Michael Rostom <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 0aa23badb80e42a75f04c399bdb6140e1752c384 by Michael Rostom.
Committed on 06/08/2026 at 02:34.
Pushed by devinlin into branch 'master'.
Added a scrollbar to the bottom drawer for conversion categories
M +15 -14 src/qml/UnitConverter.qml
https://invent.kde.org/utilities/kalk/-/commit/0aa23badb80e42a75f04c399bdb6140e1752c384
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
}
}
}