Commit 8fd8101b authored by Oliver Beard's avatar Oliver Beard Committed by Nate Graham
Browse files

kcm/launch_feedback: Update layout

Update the KCM layout slightly, with added spacing and changes to the spinbox
to bring it in line with the Notifications KCM.
parent 3c880f6c
Pipeline #230896 passed with stage
in 3 minutes and 34 seconds
......@@ -4,7 +4,7 @@
SPDX-License-Identifier: LGPL-2.0-only
*/
import QtQuick 2.1
import QtQuick 2.5
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.2 as QQC2
import org.kde.kirigami 2.3 as Kirigami
......@@ -87,6 +87,10 @@ KCM.SimpleKCM {
}
}
Item {
Kirigami.FormData.isSection: true
}
QQC2.CheckBox {
id: taskManagerNotification
......@@ -105,12 +109,11 @@ KCM.SimpleKCM {
QQC2.SpinBox {
id: notificationTimeout
Layout.preferredWidth: notificationTimeoutMetrics.implicitWidth + leftPadding + rightPadding
Kirigami.FormData.label: i18n("Stop animation after:")
// Don't resize if the suffix changes length
Layout.minimumWidth: Kirigami.Units.gridUnit * 7
from: 1
to: 60
stepSize: 1
editable: true
......@@ -128,6 +131,12 @@ KCM.SimpleKCM {
settingName: "cursorTimeout"
extraEnabledConditions: taskManagerNotification.checked
}
TextMetrics {
id: notificationTimeoutMetrics
font: notificationTimeout.font
text: i18np("%1 second", "%1 seconds", 60)
}
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment