Reach out to the contentItem inside of the ListView to find the width
authorKevin Ottens <kevin.ottens@nextcloud.com>
Mon, 6 Jul 2020 12:44:23 +0000 (14:44 +0200)
committerMichael Schuster (Rebase PR Action) <misch7@users.noreply.github.com>
Mon, 6 Jul 2020 20:39:42 +0000 (20:39 +0000)
commitb98cf0a0291d48c9b7a771f6c839445068183815
treeeeb7d72802877e92985acbfba48d1f843b2f06ae
parent2475fb73b78a36e617f683d20692ccac23e725c7
Reach out to the contentItem inside of the ListView to find the width

Turns out that the ListView embedded in the Menu (reachable via
contentItem) would create a binding loop if we're using its
childrenRect. But really we're interested in the total width for the
instantiated delegate *inside* the ListView. That's why we go one level
deeper and get the childrenRect of the inner contentItem instead.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/tray/Window.qml