Skip to content

Commit

Permalink
NoControlPanel: Add first version and integrate it in resource
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
  • Loading branch information
patrickelectric authored and jaxxzer committed Jul 16, 2019
1 parent 48ecaf4 commit f04a5c6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions qml/NoControlPanel.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import QtQml 2.2
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3

GroupBox {
id: root
title: "No sensor"
label.x: width/2 - label.contentWidth/2
ColumnLayout {
Label {
text: "Please connect with a device:"
}
Button {
text: "Device Manager"
Layout.fillWidth: true
onClicked: {
deviceManagerViewer.open()
root.parent.hideItem = true
}
}
}
}
1 change: 1 addition & 0 deletions resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<file alias="Ping1DControlPanel.qml">qml/Ping1DControlPanel.qml</file>
<file alias="Ping360ControlPanel.qml">qml/Ping360ControlPanel.qml</file>
<file alias="MainPage.qml">qml/MainPage.qml</file>
<file alias="NoControlPanel.qml">qml/NoControlPanel.qml</file>
<file alias="Ping1DVisualizer.qml">qml/Ping1DVisualizer.qml</file>
<file alias="Ping360Visualizer.qml">qml/Ping360Visualizer.qml</file>
<file alias="PingButton.qml">qml/PingButton.qml</file>
Expand Down

0 comments on commit f04a5c6

Please sign in to comment.