summaryrefslogtreecommitdiff
path: root/Main.qml
diff options
context:
space:
mode:
authorNikita Kostovsky <nikita@kostovsky.me>2025-02-28 23:28:48 +0100
committerNikita Kostovsky <nikita@kostovsky.me>2025-02-28 23:28:48 +0100
commitc6b3b137e464cd2e16c046ca34be3c9e6e6fa1c9 (patch)
tree1fced94581a7025ac4b9144f6dae81776969b3f2 /Main.qml
parentdb510e98c16437bf00b1d2aac5b1effc4fda971e (diff)
random changes
Diffstat (limited to 'Main.qml')
-rw-r--r--Main.qml22
1 files changed, 11 insertions, 11 deletions
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