Commit ee9033b6 authored by Konrad Materka's avatar Konrad Materka Committed by Nate Graham

Fix QML Binding warnings

Qt 5.14 introduced new restoreMode mandatory property. Fix warnings like this one:
QML Binding: Not restoring previous value because restoreMode has not been set.
parent 880d3a74
......@@ -19,6 +19,7 @@
import QtQuick 2.4
import QtGraphicalEffects 1.0
import QtQml 2.15
import org.kde.plasma.core 2.1 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
......@@ -493,6 +494,7 @@ Kicker.DashboardWindow {
target: globalFavorites
property: "iconSize"
value: root.iconSize
restoreMode: Binding.RestoreBinding
}
}
......
......@@ -19,6 +19,8 @@
import QtQuick 2.2
import QtQuick.Layouts 1.1
import QtQml 2.15
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
......@@ -104,6 +106,7 @@ FocusScope {
target: globalFavorites
property: "iconSize"
value: PlasmaCore.Units.iconSizes.medium
restoreMode: Binding.RestoreBinding
}
}
......
......@@ -19,8 +19,9 @@
import QtQuick 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0
import QtQml 2.15
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.taskmanager 0.1 as TaskManager
......@@ -327,6 +328,7 @@ MouseArea {
property: "status"
value: (tasksModel.anyTaskDemandsAttention
? PlasmaCore.Types.NeedsAttentionStatus : PlasmaCore.Types.PassiveStatus)
restoreMode: Binding.RestoreBinding
}
Connections {
......
......@@ -19,8 +19,9 @@
import QtQuick 2.12
import QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0
import QtQml 2.15
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
......@@ -180,6 +181,7 @@ FocusScope {
target: plasmoid
property: "busy"
value: !gridView.model && dir.status === Folder.FolderModel.Listing
restoreMode: Binding.RestoreBinding
}
function makeBackButton() {
......
......@@ -18,6 +18,8 @@
***************************************************************************/
import QtQuick 2.0
import QtQml 2.15
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
......@@ -88,6 +90,7 @@ FocusScope {
target: plasmoid
property: "title"
value: labelGenerator.displayLabel
restoreMode: Binding.RestoreBinding
}
Folder.LabelGenerator {
......
......@@ -20,6 +20,7 @@ import QtQuick 2.0
import org.kde.plasma.configuration 2.0
import QtQuick.Controls 2.3 as QtControls
import QtQuick.Layouts 1.1
import QtQml 2.15
import org.kde.kconfig 1.0 // for KAuthorized
import org.kde.plasma.private.shell 2.0 as ShellPrivate // for WallpaperPlugin
......@@ -152,6 +153,7 @@ ColumnLayout {
target: categoriesScroll //from parent scope AppletConfiguration
property: "enabled"
value: !switchContainmentWarning.visible
restoreMode: Binding.RestoreBinding
}
}
......
......@@ -18,6 +18,7 @@
import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQml 2.15
import org.kde.plasma.core 2.0 as PlasmaCore
......@@ -90,6 +91,7 @@ PlasmaCore.FrameSvgItem {
return containment.Layout.preferredWidth
}
}
restoreMode: Binding.RestoreBinding
}
Binding {
......@@ -103,6 +105,7 @@ PlasmaCore.FrameSvgItem {
return containment.backgroundHints;
}
restoreMode: Binding.RestoreBinding
}
Item {
......
......@@ -21,6 +21,8 @@
import QtQuick 2.6
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.3 as QtControls
import QtQml 2.15
import org.kde.kirigami 2.10 as Kirigami
import org.kde.kcm 1.2 as KCM
import org.kde.private.kcms.style 1.0 as Private
......@@ -34,12 +36,14 @@ KCM.ScrollViewKCM {
target: kcm.filteredModel
property: "query"
value: searchField.text
restoreMode: Binding.RestoreBinding
}
Binding {
target: kcm.filteredModel
property: "statusFilter"
value: filterCombo.model[filterCombo.currentIndex].statusFilter
restoreMode: Binding.RestoreBinding
}
header: ColumnLayout {
......
......@@ -79,6 +79,7 @@ KCM.AbstractKCM {
target: kcm.filteredModel
property: "filter"
value: search.text
restoreMode: Binding.RestoreBinding
}
}
GridLayout {
......
......@@ -21,6 +21,7 @@
import QtQuick 2.9
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.3 as QtControls
import QtQml 2.15
import org.kde.kirigami 2.12 as Kirigami
import org.kde.kcm 1.2 as KCM
......@@ -55,6 +56,7 @@ Kirigami.Page {
target: kcm.filteredModel
property: "query"
value: searchField.text
restoreMode: Binding.RestoreBinding
}
RowLayout {
......
Markdown is supported
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