Warning, /maui/mauikit/src/controls.5/ScrollColumn.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *   Copyright 2018 Camilo Higuita <milo.h@aol.com>
0003  *
0004  *   This program is free software; you can redistribute it and/or modify
0005  *   it under the terms of the GNU Library General Public License as
0006  *   published by the Free Software Foundation; either version 2, or
0007  *   (at your option) any later version.
0008  *
0009  *   This program is distributed in the hope that it will be useful,
0010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  *   GNU General Public License for more details
0013  *
0014  *   You should have received a copy of the GNU Library General Public
0015  *   License along with this program; if not, write to the
0016  *   Free Software Foundation, Inc.,
0017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
0018  */
0019 
0020 import QtQuick 2.14
0021 
0022 import QtQuick.Controls 2.14
0023 import QtQuick.Layouts 1.3
0024 
0025 import org.mauikit.controls 1.3 as Maui
0026 import QtQuick.Templates 2.15 as T
0027 
0028 ScrollView
0029 {
0030     id: control
0031 
0032     default property alias content : _pageContent.data
0033         property alias container : _pageContent
0034     property alias flickable: _flickable
0035 
0036     padding: Maui.Style.contentMargins
0037 
0038     contentWidth: availableWidth
0039     contentHeight: _pageContent.implicitHeight
0040     
0041     implicitHeight: contentHeight + topPadding + bottomPadding
0042 
0043     spacing: Maui.Style.defaultSpacing
0044     
0045     Flickable
0046     {
0047         id: _flickable
0048         boundsBehavior: Flickable.StopAtBounds
0049         boundsMovement: Flickable.StopAtBounds
0050 
0051         ColumnLayout
0052         {
0053             id: _pageContent
0054             width: parent.width
0055             spacing: control.spacing
0056         }
0057     }
0058 }
0059