From 2e1f388c03b6384485e1fe9f2ec708c3b7104d3b Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Sun, 12 Jan 2025 11:51:19 +0100 Subject: receive and visualize rofiles --- Main.qml | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to 'Main.qml') 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() } -- cgit v1.2.3-70-g09d2