diff --git a/storybook/src/Storybook/GenericListView.qml b/storybook/src/Storybook/GenericListView.qml index 8782ef5d51..ee7ed47bbb 100644 --- a/storybook/src/Storybook/GenericListView.qml +++ b/storybook/src/Storybook/GenericListView.qml @@ -53,6 +53,19 @@ ListView { Component.onCompleted: initialize() } + Connections { + target: root.model + + function onRowsInserted() { + if (rowModel.count === 0) + rowModel.initialize() + } + + function onModelReset() { + rowModel.initialize() + } + } + Rectangle { border.color: "lightgray" color: "transparent"