From 40b2dedb2c99b93739ad64ef6a26ebbd935a664a Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Fri, 3 Nov 2023 12:13:48 -0600 Subject: [PATCH] Fixup 55100ddbccd8d68889263afd2a336a09ee27126c We need to specify the width manually when porting to ItemDelegate. Also we can port to CheckDelegate instead here since it does exactly the same thing as the old list item's custom content item. CCMAIL: notmart@gmail.com --- kcms/virtualkeyboard/ui/languages.qml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/kcms/virtualkeyboard/ui/languages.qml b/kcms/virtualkeyboard/ui/languages.qml index 0279aab8..dac4c69d 100644 --- a/kcms/virtualkeyboard/ui/languages.qml +++ b/kcms/virtualkeyboard/ui/languages.qml @@ -8,7 +8,6 @@ import QtQuick 2.7 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.11 as QQC2 -import org.kde.kirigami 2.10 as Kirigami import org.kde.kcmutils as KCM import org.kde.kitemmodels 1.0 as KItemModel @@ -30,13 +29,12 @@ KCM.ScrollViewKCM { sortOrder: Qt.AscendingOrder } - delegate: QQC2.ItemDelegate { - contentItem: QQC2.CheckBox { - text: model.name - checked: model.enabled - onCheckedChanged: { - model.enabled = checked - } + delegate: QQC2.CheckDelegate { + width: ListView.view.width + text: model.name + checked: model.enabled + onToggled: { + model.enabled = checked } } }