From c6b3b137e464cd2e16c046ca34be3c9e6e6fa1c9 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 28 Feb 2025 23:28:48 +0100 Subject: random changes --- Main.qml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Main.qml') diff --git a/Main.qml b/Main.qml index 0725efc..1faaaf0 100644 --- a/Main.qml +++ b/Main.qml @@ -311,11 +311,11 @@ ApplicationWindow { Layout.minimumWidth: implicitWidth from: 10 - to: 30000000 + to: 94000000 stepSize: 100 editable: true - value: 3000000 + value: 68000 onValueChanged: writeParams() } @@ -550,7 +550,7 @@ ApplicationWindow { Layout.fillWidth: true - currentIndex: 0 + currentIndex: 1 Shortcut { sequence: "alt+1" @@ -585,6 +585,8 @@ ApplicationWindow { Layout.fillHeight: true Layout.fillWidth: true + property ListView iii: contentItem + Component.onCompleted: iii.maximumFlickVelocity = 10 * width // Layout.minimumWidth: mainWindowRoot.width * 0.8 currentIndex: tabBar.currentIndex @@ -593,19 +595,15 @@ ApplicationWindow { ImageViewer { id: image - visible: SwipeView.index = SwipeView.currentIndex - onVisibleChanged: console.log("image viewer visible: ", visible, " index ", index, SwipeView.currentIndex) - property int iii: SwipeView.index - property int ccc: SwipeView.currentIndex - Connections { - target: swipeView - onCurrentIndexChanged: console.log("image viewer visible: ", visible, " index ", image.iii, image.ccc, swipeView.currentIndex) - } + + visible: SwipeView.isCurrentItem } QmlCustomPlot { id: pixelsQmlCustomPlot + visible: SwipeView.isCurrentItem + objectName: "pixelsCustomPlot" Label { @@ -628,6 +626,8 @@ ApplicationWindow { objectName: "profileCustomPlot" + visible: SwipeView.isCurrentItem + Label { anchors { top: parent.top -- cgit v1.2.3-70-g09d2