[vlc-devel] [PATCH 7/8] qml: Component properties cannot be undefined
Pierre Lamot
pierre at videolabs.io
Tue Sep 1 18:32:09 CEST 2020
---
modules/gui/qt/widgets/qml/DrawerExt.qml | 2 +-
modules/gui/qt/widgets/qml/KeyNavigableTableView.qml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/widgets/qml/DrawerExt.qml b/modules/gui/qt/widgets/qml/DrawerExt.qml
index b7fbc4e1fc..594e9db209 100644
--- a/modules/gui/qt/widgets/qml/DrawerExt.qml
+++ b/modules/gui/qt/widgets/qml/DrawerExt.qml
@@ -21,7 +21,7 @@ import QtQuick.Controls 2.4
NavigableFocusScope {
id: root
- property Component component: undefined
+ property Component component: Item {}
enum Edges {
Top,
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
index ffa0dac6d2..727266eb94 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
@@ -58,7 +58,7 @@ NavigableFocusScope {
property alias currentItem: view.currentItem
property alias headerPositioning: view.headerPositioning
- property Component header: undefined
+ property Component header: Item{}
property var headerItem: view.headerItem.loadedHeader
property alias tableHeaderItem: view.headerItem
property color headerColor
--
2.25.1
More information about the vlc-devel
mailing list