mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-19 12:22:16 +03:00
c342c304ac
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
27 lines
645 B
QML
27 lines
645 B
QML
import QtQml 2.15
|
|
import QtQuick 2.15
|
|
import QtQuick.Controls 2.3
|
|
import Style 1.0
|
|
|
|
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
|
|
palette.windowText: Style.ncTextColor
|
|
onTriggered: menuEntryTriggered(model.modelData.actionIndex)
|
|
}
|
|
}
|
|
}
|