Skip to content
Snippets Groups Projects
Commit 74fc4fde authored by aleksandr.ledyaev's avatar aleksandr.ledyaev
Browse files

[*] DapNetworkPopupButton.qml; DapNetworkPopup.qml

parent f2f084b6
No related branches found
No related tags found
1 merge request!11Cellframe clone
...@@ -94,11 +94,15 @@ Popup { ...@@ -94,11 +94,15 @@ Popup {
height: 24 * pt height: 24 * pt
enabled: control.state == "NET_STATE_ONLINE" && control.targetState == "NET_STATE_ONLINE" enabled: control.state == "NET_STATE_ONLINE" && control.targetState == "NET_STATE_ONLINE"
text: qsTr("Sync network") text: qsTr("Sync network")
onClicked: console.log("SYNC NETWORK CLICKED", control.name)
} }
DapNetworkPopupButton { DapNetworkPopupButton {
width: contentItem.width / 2 width: contentItem.width / 2
height: 24 * pt height: 24 * pt
text: control.state == "NET_STATE_OFFLINE" ? qsTr("On network") : qsTr("Off network") text: control.state == "NET_STATE_OFFLINE" ? qsTr("On network") : qsTr("Off network")
onClicked: console.log("ON/OFF NETWORK CLICKED", control.name)
} }
} }
......
...@@ -39,8 +39,6 @@ Rectangle { ...@@ -39,8 +39,6 @@ Rectangle {
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
onClicked: { onClicked: control.clicked()
}
} }
} }
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