mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-20 04:41:51 +03:00
26 lines
578 B
QML
26 lines
578 B
QML
|
import QtQml 2.15
|
||
|
import QtQuick 2.15
|
||
|
import QtQuick.Controls 2.3
|
||
|
|
||
|
AutoSizingMenu {
|
||
|
id: moreActionsButtonContextMenu
|
||
|
|
||
|
property int maxActionButtons: 0
|
||
|
|
||
|
property var linksContextMenu: []
|
||
|
|
||
|
signal menuEntryTriggered(int index)
|
||
|
|
||
|
Repeater {
|
||
|
id: moreActionsButtonContextMenuRepeater
|
||
|
|
||
|
model: moreActionsButtonContextMenu.linksContextMenu
|
||
|
|
||
|
delegate: MenuItem {
|
||
|
id: moreActionsButtonContextMenuEntry
|
||
|
text: model.modelData.label
|
||
|
onTriggered: menuEntryTriggered(model.modelData.actionIndex)
|
||
|
}
|
||
|
}
|
||
|
}
|