Skip to content
Snippets Groups Projects
Commit a29eff95 authored by Evgenii Tagiltsev's avatar Evgenii Tagiltsev
Browse files

[+] added menu and frame for field "description"

parent b55a155d
No related branches found
No related tags found
1 merge request!5Features 2379
......@@ -4,19 +4,63 @@ import QtQuick.Dialogs 1.2
import NodeNetworkExplorer 1.0
Page {
Flickable {
id: dapExplorer
Row {
anchors.fill: parent
contentWidth: dapGraphWidget.width * dapGraphWidget.scale
contentHeight: dapGraphWidget.height * dapGraphWidget.scale
contentY: dapGraphWidget.height / 2 - height / 2
contentX: dapGraphWidget.width / 2 - width / 2
DapUiQmlWidgetNodeNetwork {
id: dapGraphWidget
scale: 0.6
data: dapNodeNetworkModel.data
transformOrigin: Item.TopLeft
Flickable {
id: dapExplorer
anchors.fill: parent
contentWidth: dapGraphWidget.width * dapGraphWidget.scale
contentHeight: dapGraphWidget.height * dapGraphWidget.scale
contentY: dapGraphWidget.height / 2 - height / 2
contentX: dapGraphWidget.width / 2 - width / 2
DapUiQmlWidgetNodeNetwork {
id: dapGraphWidget
scale: 0.6
transformOrigin: Item.TopLeft
model: dapNodeNetworkModel
Menu {
id: dapNodeNetworkMenu
MenuItem {
id: dapMenuItemDetails
text: "Show detalies"
onTriggered: {
dapNodeNetworkDescription.visible = true;
}
}
MenuItem {
id: dapMenuItemStatus
text: "Set status"
onTriggered: {
}
}
}
MouseArea {
anchors.fill: parent;
acceptedButtons: Qt.RightButton
onReleased: {
dapNodeNetworkMenu.x = mouseX;
dapNodeNetworkMenu.y = mouseY;
dapNodeNetworkMenu.visible = true;
}
}
}
}
Rectangle {
id: dapNodeNetworkDescription
width: 300
// anchors.top: parent.top
// anchors.right: parent.right
// anchors.bottom: parent.bottom
visible: false
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment