Use new scrollbars for scrollviews (ie text areas)

This commit is contained in:
miruka 2020-06-22 13:57:49 -04:00
parent 783a711799
commit ae37e13c6e
5 changed files with 20 additions and 5 deletions

View File

@ -0,0 +1,16 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.12
import QtQuick.Controls 2.12
ScrollView {
id: scrollView
ScrollBar.vertical: HScrollBar {
parent: scrollView
x: scrollView.mirrored ? 0 : scrollView.width - width
y: scrollView.topPadding
height: scrollView.availableHeight
active: scrollView.ScrollBar.horizontal.active
}
}

View File

@ -1,7 +1,6 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import "../../../Base"
@ -38,7 +37,7 @@ Rectangle {
""
}
ScrollView {
HScrollView {
Layout.fillHeight: true
Layout.fillWidth: true

View File

@ -117,7 +117,7 @@ HFlickableColumnPage {
Layout.fillWidth: true
ScrollView {
HScrollView {
clip: true
width: parent.width
height:

View File

@ -61,7 +61,7 @@ BoxPopup {
property var failedInvites: []
ScrollView {
HScrollView {
Layout.fillWidth: true
Layout.fillHeight: true

View File

@ -21,7 +21,7 @@ BoxPopup {
property string traceback: ""
ScrollView {
HScrollView {
Layout.fillWidth: true
HTextArea {