Created attachment 131240 [details] main.qml (minimal example) inside a qml KCM put a Kirigami.ItemViewHeader and it gets grumpy: > kinfocenter(273011)/(default) unknown: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/AbstractItemViewHeader.qml:33: ReferenceError: applicationWindow is not defined > kinfocenter(273011)/(default) unknown: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ItemViewHeader.qml:28: ReferenceError: applicationWindow is not defined > kinfocenter(273011)/(default) unknown: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/AbstractApplicationItem.qml:311:9: QML Binding: Not restoring previous value because restoreMode has not been set. > This behavior is deprecated. > You have to import QtQml 2.14 after any QtQuick imports and set > the restoreMode of the binding to fix this warning. > In Qt < 6.0 the default is Binding.RestoreBinding. > In Qt >= 6.0 the default is Binding.RestoreBindingOrValue. > > kinfocenter(273011)/(default) unknown: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/AbstractItemViewHeader.qml:33: ReferenceError: applicationWindow is not defined > kinfocenter(273011)/(default) unknown: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ItemViewHeader.qml:28: ReferenceError: applicationWindow is not defined I'm attaching a sample file, easiest to drop it in an existing KCM to see the problem.
Created attachment 131241 [details] shot of the screen
I suppose the problem is that it assumes the presence of applicationWindow()
Yep. Probably needs some if-elseing.