https://bugs.kde.org/show_bug.cgi?id=425899

            Bug ID: 425899
           Summary: ItemViewHeader not working inside KCMs
           Product: frameworks-kirigami
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Not decided

Created attachment 131240
  --> https://bugs.kde.org/attachment.cgi?id=131240&action=edit
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to