Warning, /maui/index-fm/src/widgets/views/home/SectionGroup.qml is written in an unsupported language. File is not indexed.

0001 // Copyright 2018-2020 Camilo Higuita <milo.h@aol.com>
0002 // Copyright 2018-2020 Slike Latinoamericana S.C.
0003 //
0004 // SPDX-License-Identifier: GPL-3.0-or-later
0005 
0006 
0007 import QtQuick 2.14
0008 import QtQuick.Controls 2.14
0009 import QtQuick.Layouts 1.3
0010 
0011 import org.mauikit.controls 1.3 as Maui
0012 
0013 Maui.SectionGroup
0014 {
0015     id: control
0016     Maui.Theme.colorSet: Maui.Theme.Window
0017     Maui.Theme.inherit: false
0018 
0019     property alias browser: _gridView
0020     property alias baseModel: _baseModel
0021     property alias currentIndex : _gridView.currentIndex
0022 
0023     padding: Maui.Style.space.medium
0024 
0025     background: Rectangle
0026     {
0027         color: Maui.Theme.backgroundColor
0028         radius: Maui.Style.radiusV
0029     }
0030 
0031     Maui.GridBrowser
0032     {
0033         id: _gridView
0034         clip: true
0035 
0036         verticalScrollBarPolicy: ScrollBar.AlwaysOff
0037         horizontalScrollBarPolicy:  ScrollBar.AsNeeded
0038         currentIndex: -1
0039         Layout.fillWidth: true
0040         Layout.preferredHeight: implicitHeight + topPadding + bottomPadding
0041         Layout.fillHeight: true
0042         flickable.flow: GridView.FlowTopToBottom
0043         scrollView.orientation: Qt.Horizontal
0044 
0045         itemSize: 220
0046         itemHeight: 70
0047         adaptContent: false
0048 
0049         holder.visible: count === 0
0050         holder.title: i18n("Nothing in here yet.")
0051         holder.body: i18n("Check back later.")
0052 
0053         model: Maui.BaseModel
0054         {
0055             id: _baseModel
0056         }
0057     }
0058 }