diff --git a/src/qmlcontrols/kcmcontrols/qml/ScrollView.qml b/src/qmlcontrols/kcmcontrols/qml/ScrollView.qml index 8ef57a2..4482e06 100644 --- a/src/qmlcontrols/kcmcontrols/qml/ScrollView.qml +++ b/src/qmlcontrols/kcmcontrols/qml/ScrollView.qml @@ -1,61 +1,60 @@ /* Copyright (c) 2018 Marco Martin This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import QtQuick 2.7 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.2 as QtControls import org.kde.kirigami 2.3 as Kirigami /** * A ScrollView containing a GridView, with the default behavior about * sizing and background as recommended by the user interface guidelines * For most KControl modules, it's recommended to use instead the GridViewKCM * component as the root element of your module. * @code * import org.kde.kcm 1.2 as KCM * KCM.ScrollView { * view: ListView { * ... * } * } * @endcode * @see GridViewKCM */ QtControls.ScrollView { id: scroll /** * view: GridView * Exposes the internal flickable */ property Flickable view contentItem: view onViewChanged: { view.parent = scroll; - view.anchors.fill = view.parent; } activeFocusOnTab: false Kirigami.Theme.colorSet: Kirigami.Theme.View Kirigami.Theme.inherit: false Component.onCompleted: scroll.background.visible = true; QtControls.ScrollBar.horizontal.visible: false }