Index: sources/gui/qml/pages/treatment/TreatmentPrime.qml =================================================================== diff -u -r1d2ab4adce5e88a7e316cad3c75e519704511813 -rf8321d4b6a5489f797122321a4821b4eeaaa50cb --- sources/gui/qml/pages/treatment/TreatmentPrime.qml (.../TreatmentPrime.qml) (revision 1d2ab4adce5e88a7e316cad3c75e519704511813) +++ sources/gui/qml/pages/treatment/TreatmentPrime.qml (.../TreatmentPrime.qml) (revision f8321d4b6a5489f797122321a4821b4eeaaa50cb) @@ -17,7 +17,6 @@ // Qt import QtQuick 2.12 import QtQuick.Controls 2.12 -import QtQuick.Layouts 1.12 // Project // Qml imports @@ -45,8 +44,7 @@ } - Flickable { - id: _flickable + Flickable { id: _flickable anchors.top: _topMenuBar.bottom anchors.left: parent.left anchors.bottom: parent.bottom @@ -55,12 +53,22 @@ contentHeight: _column.implicitHeight clip: true - Column { - id: _column - spacing: Variables.cTreatmentSpacing - anchors.horizontalCenter: parent.horizontalCenter - anchors.fill: parent + ScrollBar.vertical: ScrollBar { id: _scrollBar + anchors.right: _flickable.right + anchors.rightMargin: 3 + contentItem: Rectangle { + color: Colors.backgroundRangeRect + implicitWidth: 6 + radius: width / 2 + width: 3 + } + } + Column { id: _column + spacing: Variables.treatmentSpacing + anchors.horizontalCenter: parent.horizontalCenter; + anchors.fill: parent; + Text { id: _titleText anchors.horizontalCenter: parent.horizontalCenter text: qsTr("Priming") @@ -143,36 +151,6 @@ } } - states: [ - State { - when: _flickable.movingVertically - PropertyChanges { - target: _verticalScrollBar - opacity: 0.8 - } - } - ] - - ScrollBar { - anchors.top: _flickable.top - anchors.bottom: _flickable.bottom - id: _verticalScrollBar - size: _flickable.height / _column.implicitHeight - active: true - anchors.right: _flickable.right - anchors.rightMargin: 5 - opacity: 0 - orientation: Qt.Vertical - position: _flickable.visibleArea.yPosition - - contentItem: Rectangle { - color: Colors.backgroundRangeRect - implicitWidth: 6 - radius: width / 2 - width: 3 - } - } - onVisibleChanged: { if (visible) { _mainMenu.hidden = true