Fix checkbox label on small screen
See https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/173
This commit is contained in:
@@ -14,6 +14,7 @@ Kirigami.ScrollablePage {
|
|||||||
title: i18nc('@title:window', 'General')
|
title: i18nc('@title:window', 'General')
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Kirigami.FormLayout {
|
Kirigami.FormLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
QQC2.CheckBox {
|
QQC2.CheckBox {
|
||||||
Kirigami.FormData.label: i18n("General settings:")
|
Kirigami.FormData.label: i18n("General settings:")
|
||||||
text: i18n("Close to system tray")
|
text: i18n("Close to system tray")
|
||||||
@@ -96,19 +97,16 @@ Kirigami.ScrollablePage {
|
|||||||
QQC2.CheckBox {
|
QQC2.CheckBox {
|
||||||
id: quickEditCheckbox
|
id: quickEditCheckbox
|
||||||
Layout.maximumWidth: parent.width
|
Layout.maximumWidth: parent.width
|
||||||
contentItem: QQC2.Label {
|
text: i18n("Use s/text/replacement syntax to edit your last message")
|
||||||
text: i18n("Use s/text/replacement syntax to edit your last message")
|
|
||||||
horizontalAlignment: Text.AlignLeft
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
leftPadding: quickEditCheckbox.indicator.width + quickEditCheckbox.spacing
|
|
||||||
wrapMode: QQC2.Label.Wrap
|
|
||||||
}
|
|
||||||
checked: Config.allowQuickEdit
|
checked: Config.allowQuickEdit
|
||||||
enabled: !Config.isAllowQuickEditImmutable
|
enabled: !Config.isAllowQuickEditImmutable
|
||||||
onToggled: {
|
onToggled: {
|
||||||
Config.allowQuickEdit = checked
|
Config.allowQuickEdit = checked
|
||||||
Config.save()
|
Config.save()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO KF5.97 remove this line
|
||||||
|
Component.onCompleted: this.contentItem.wrap = QQC2.Label.Wrap
|
||||||
}
|
}
|
||||||
QQC2.CheckBox {
|
QQC2.CheckBox {
|
||||||
text: i18n("Send Typing Notifications")
|
text: i18n("Send Typing Notifications")
|
||||||
@@ -121,12 +119,16 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
QQC2.CheckBox {
|
QQC2.CheckBox {
|
||||||
text: i18n("Automatically hide/unhide the room information when resizing the window")
|
text: i18n("Automatically hide/unhide the room information when resizing the window")
|
||||||
|
Layout.maximumWidth: parent.width
|
||||||
checked: Config.autoRoomInfoDrawer
|
checked: Config.autoRoomInfoDrawer
|
||||||
enabled: !Config.isAutoRoomInfoDrawerImmutable
|
enabled: !Config.isAutoRoomInfoDrawerImmutable
|
||||||
onToggled: {
|
onToggled: {
|
||||||
Config.autoRoomInfoDrawer = checked
|
Config.autoRoomInfoDrawer = checked
|
||||||
Config.save()
|
Config.save()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO KF5.97 remove this line
|
||||||
|
Component.onCompleted: this.contentItem.wrap = QQC2.Label.Wrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user