Commit 0ac9ebe9 authored by Nate Graham's avatar Nate Graham
Browse files

Port away from last use of KDeclarative in QML

We were still using KCM.ContextualHelpButton, which comes from
KDeclarative. But KDeclarative isn't listed as a dependency anymore--not
even an optional one--so we shouldn't be using anything from it.
parent a492b8ca
Pipeline #237544 passed with stage
in 13 minutes and 9 seconds
......@@ -13,7 +13,6 @@ import QtQuick.Controls 2.4 as QQC2
import QtQuick.Dialogs 1.3 as Dialogs
import org.kde.kirigami 2.14 as Kirigami
import org.kde.kcm 1.6 as KCM
import org.kde.elisa 1.0
......@@ -303,11 +302,16 @@ ColumnLayout {
// Playlist save settings
// ======================
RowLayout {
ColumnLayout {
Kirigami.FormData.label: i18n("When saving playlist files:")
Kirigami.FormData.buddyFor: playlistFilePathTypeBox
Layout.fillWidth: true
spacing: Kirigami.Units.smallSpacing
QQC2.ComboBox {
id: playlistFilePathTypeBox
model: [i18nc("@item:inlistbox Configure dialog, playlist save type", "Prefer relative paths"),
i18nc("@item:inlistbox Configure dialog, playlist save type", "Always use absolute paths")]
......@@ -317,8 +321,12 @@ ColumnLayout {
}
}
KCM.ContextualHelpButton {
toolTipText: xi18nc("@info:tooltip Playlist Relative Paths", "When <interface>Prefer relative paths</interface> is selected, files in the same folder as the playlist will be referred with only the filename. Absolute paths are used in other cases.")
QQC2.Label {
Layout.fillWidth: true
Layout.maximumWidth: Kirigami.Units.gridUnit * 16
text: xi18nc("@info:tooltip Playlist Relative Paths", "When <interface>Prefer relative paths</interface> is selected, files in the same folder as the playlist will be referred with only the filename. Absolute paths are used in other cases.")
wrapMode: Text.Wrap
font: Kirigami.Theme.smallFont
}
}
}
......
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