Skip to content

Commit

Permalink
refactor(config): Port to KCM
Browse files Browse the repository at this point in the history
  • Loading branch information
korapp committed Mar 19, 2024
1 parent 8faddd8 commit 946414c
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions package/contents/ui/ConfigGeneral.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@ import QtQuick
import QtQuick.Controls

import org.kde.kirigami as Kirigami
import org.kde.kcmutils as KCM

Kirigami.FormLayout {
KCM.SimpleKCM {
property alias cfg_toggleConnectionOnMiddleButton: toggleConnectionOnMiddleButton.checked
property alias cfg_hideWhenDisconnected: hideWhenDisconnected.checked
property alias cfg_showNotifications: showNotifications.checked

CheckBox {
id: toggleConnectionOnMiddleButton
Kirigami.FormData.label: i18n("Toggle connection on middle mouse button")
}
Kirigami.FormLayout {
CheckBox {
id: toggleConnectionOnMiddleButton
Kirigami.FormData.label: i18n("Toggle connection on middle mouse button")
}

CheckBox {
id: hideWhenDisconnected
Kirigami.FormData.label: i18n("Hide icon when disconnected")
}
CheckBox {
id: hideWhenDisconnected
Kirigami.FormData.label: i18n("Hide icon when disconnected")
}

CheckBox {
id: showNotifications
Kirigami.FormData.label: i18n("Show notifications")
CheckBox {
id: showNotifications
Kirigami.FormData.label: i18n("Show notifications")
}
}
}

0 comments on commit 946414c

Please sign in to comment.