Warning, /maui/mauikit/src/controls.5/PageLayout.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * Copyright 2019 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.15 0021 import QtQml 2.15 0022 import QtQuick.Controls 2.15 0023 import QtQuick.Layouts 1.3 0024 import QtQuick.Templates 2.15 as T 0025 import QtGraphicalEffects 1.15 0026 0027 import org.mauikit.controls 1.3 as Maui 0028 0029 Maui.Page 0030 { 0031 id: control 0032 0033 property Component leftComponent : null 0034 property Component rightComponent : null 0035 property Component middleComponent: null 0036 0037 property bool mobile : false 0038 0039 headBar.leftContent: Loader 0040 { 0041 active: !control.mobile && control.leftComponent 0042 asynchronous: true 0043 visible: active 0044 sourceComponent: control.leftComponent 0045 } 0046 0047 headBar.rightContent: Loader 0048 { 0049 active: !control.mobile && control.rightComponent 0050 asynchronous: true 0051 visible: active 0052 sourceComponent: control.leftComponent 0053 } 0054 0055 headBar.middleComponent: Loader 0056 { 0057 asynchronous: true 0058 active: control.middleComponent 0059 visible: active 0060 sourceComponent: control.middleComponent 0061 } 0062 0063 headerColumn: Maui.ToolBar 0064 { 0065 visible: control.mobile 0066 width: parent.width 0067 0068 leftContent: Loader 0069 { 0070 active: control.mobile && control.leftComponent 0071 asynchronous: true 0072 visible: active 0073 sourceComponent: control.leftComponent 0074 } 0075 0076 rightContent: Loader 0077 { 0078 active: control.mobile && control.rightComponent 0079 asynchronous: true 0080 visible: active 0081 sourceComponent: control.leftComponent 0082 } 0083 } 0084 0085 }