Fix warning about binding loop of with property in Plasmoid code

Specifying the with explicitely on every level seems to fix this. Not sure
whether it is the best solution but Qt 6 will likely mess up everything
anyways so let's not put further effort into the QML stuff at this point.
This commit is contained in:
Martchus 2020-08-18 01:27:48 +02:00
parent 80704e0028
commit f952ca6ba1
4 changed files with 8 additions and 0 deletions

View File

@ -17,10 +17,12 @@ Item {
TopLevelView {
id: deviceView
width: parent.width
model: plasmoid.nativeInterface.devModel
delegate: TopLevelItem {
id: item
width: deviceView.width
property alias resumePauseButton: resumePauseButton
ColumnLayout {

View File

@ -19,6 +19,7 @@ ColumnLayout {
TopLevelView {
id: directoryView
width: parent.width
model: PlasmaCore.SortFilterModel {
id: directoryFilterModel
@ -29,6 +30,7 @@ ColumnLayout {
delegate: TopLevelItem {
id: item
width: directoryView.width
property alias errorsButton: errorsButton
property alias rescanButton: rescanButton
property alias resumePauseButton: resumePauseButton

View File

@ -17,10 +17,12 @@ Item {
TopLevelView {
id: downloadView
width: parent.width
model: plasmoid.nativeInterface.downloadModel
delegate: TopLevelItem {
id: item
width: downloadView.width
property alias openButton: openButton
ColumnLayout {

View File

@ -16,8 +16,10 @@ Item {
TopLevelView {
id: recentChangesView
width: parent.width
model: plasmoid.nativeInterface.recentChangesModel
delegate: TopLevelItem {
width: recentChangesView.width
ColumnLayout {
width: parent.width
spacing: 0