aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2018-12-12 14:47:21 +0100
committerselsta <selsta@sent.at>2018-12-12 14:52:55 +0100
commit7e95253fa25ca1ff47cdaed6259e74058a29ae44 (patch)
treeeac10c45f860dc05ca7bf109fec397fe224030d5
parent03f09865e8ef5662ceccb5e1d2353d7511e2e9ab (diff)
downloadmonzero-gui-7e95253fa25ca1ff47cdaed6259e74058a29ae44.tar.gz
monzero-gui-7e95253fa25ca1ff47cdaed6259e74058a29ae44.tar.xz
monzero-gui-7e95253fa25ca1ff47cdaed6259e74058a29ae44.zip
MiddlePanel: use QtQuick.Control scrollbar
-rw-r--r--MiddlePanel.qml16
1 files changed, 7 insertions, 9 deletions
diff --git a/MiddlePanel.qml b/MiddlePanel.qml
index 183dd688..71fa639f 100644
--- a/MiddlePanel.qml
+++ b/MiddlePanel.qml
@@ -29,6 +29,7 @@
import QtQml 2.0
import QtQuick 2.2
+import QtQuick.Controls 2
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.0
@@ -181,21 +182,18 @@ Rectangle {
Layout.fillHeight: true
clip: true
- onFlickingChanged: {
- releaseFocus();
- flickableScroll.flickableContentYChanged();
- }
-
- MoneroComponents.Scroll {
- id: flickableScroll
+ ScrollBar.vertical: ScrollBar {
parent: mainFlickable.parent
anchors.left: parent.right
anchors.leftMargin: 3
anchors.top: parent.top
anchors.bottom: parent.bottom
- flickable: mainFlickable
- scrollWidth: 6
}
+
+ onFlickingChanged: {
+ releaseFocus();
+ }
+
// Views container
StackView {
id: stackView