Warning, /maui/pix/src/widgets/views/Gallery/GalleryView.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 Nitrux Latinoamericana S.C.
0003 //
0004 // SPDX-License-Identifier: GPL-3.0-or-later
0005 
0006 import QtQuick 2.10
0007 
0008 import QtQuick.Controls 2.10
0009 import QtQuick.Layouts 1.12
0010 
0011 import org.maui.pix 1.0 as Pix
0012 import org.mauikit.controls 1.3 as Maui
0013 import org.maui.pix 1.0
0014 
0015 import "../../../view_models"
0016 
0017 PixGrid
0018 {
0019     id: control
0020     holder.emoji: "qrc:/assets/image-multiple.svg"
0021     holder.title : i18n("No Pics!")
0022     holder.body: mainGalleryList.status === GalleryList.Error ? mainGalleryList.error : i18n("Nothing here. You can add new sources or open an image.")
0023     holder.actions:[
0024         Action
0025         {
0026             text: i18n("Open")
0027             onTriggered: openFileDialog()
0028         },
0029 
0030         Action
0031         {
0032             text: i18n("Add sources")
0033             onTriggered: openSettingsDialog()
0034         }
0035     ]
0036 }