2022-01-04 17:28:26 +03:00
|
|
|
import QtQml 2.15
|
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.3
|
2022-02-04 05:39:38 +03:00
|
|
|
import Style 1.0
|
2022-01-04 17:28:26 +03:00
|
|
|
|
|
|
|
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
|
2022-02-04 05:39:38 +03:00
|
|
|
palette.windowText: Style.ncTextColor
|
2022-01-04 17:28:26 +03:00
|
|
|
onTriggered: menuEntryTriggered(model.modelData.actionIndex)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|