mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-20 21:02:02 +03:00
fa37f5c2bc
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
15 lines
375 B
QML
15 lines
375 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.3
|
|
|
|
Menu {
|
|
width: {
|
|
var result = 0;
|
|
var padding = 0;
|
|
for (var i = 0; i < count; ++i) {
|
|
var item = itemAt(i);
|
|
result = Math.max(item.contentItem.implicitWidth, result);
|
|
padding = Math.max(item.padding, padding);
|
|
}
|
|
return result + padding * 2;
|
|
}
|
|
}
|