summaryrefslogtreecommitdiff
path: root/Main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Main.qml')
-rw-r--r--Main.qml37
1 files changed, 33 insertions, 4 deletions
diff --git a/Main.qml b/Main.qml
index 0875d49..ef85a27 100644
--- a/Main.qml
+++ b/Main.qml
@@ -517,6 +517,11 @@ ApplicationWindow {
onActivated: tabBar.currentIndex = 1
}
+ Shortcut {
+ sequence: "alt+3"
+ onActivated: tabBar.currentIndex = 2
+ }
+
TabButton {
text: qsTr("Image")
}
@@ -524,6 +529,10 @@ ApplicationWindow {
TabButton {
text: qsTr("Pixels")
}
+
+ TabButton {
+ text: qsTr("Profile")
+ }
}
SwipeView {
@@ -540,9 +549,29 @@ ApplicationWindow {
}
QmlCustomPlot {
- id: qmlPlot
+ id: pixelsQmlCustomPlot
+
+ objectName: "pixelsCustomPlot"
+
+ Label {
+ anchors {
+ top: parent.top
+ topMargin: 8 * 2
+ horizontalCenter: parent.horizontalCenter
+ }
+ text: pixelsQmlCustomPlot.fps
+ color: Material.accent
+ }
+
+ plot: pixelsPlot
+ // Component.onCompleted: setRange(Qt.rect(-640, 0, 1280, 800))
+ // Component.onCompleted: initCustomPlot()
+ }
+
+ QmlCustomPlot {
+ id: profileQmlCustomPlot
- objectName: "qmlCustomPlot"
+ objectName: "profileCustomPlot"
Label {
anchors {
@@ -550,11 +579,11 @@ ApplicationWindow {
topMargin: 8 * 2
horizontalCenter: parent.horizontalCenter
}
- text: qmlPlot.fps
+ text: profileQmlCustomPlot.fps
color: Material.accent
}
- plot: myPlot
+ plot: profilePlot
// Component.onCompleted: setRange(Qt.rect(-640, 0, 1280, 800))
// Component.onCompleted: initCustomPlot()
}