Warning, /maui/brun/src/controls/main.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.15
0002 import QtQml 2.15
0003 import QtQuick.Controls 2.15
0004 import QtQuick.Layouts 1.12
0005 
0006 import org.mauikit.controls 1.3 as Maui
0007 
0008 Maui.ApplicationWindow
0009 {
0010     id: root
0011     title: qsTr("Astro")
0012     maximumWidth: 450
0013     maximumHeight: 800
0014     minimumWidth: _mainLayout.implicitWidth
0015     minimumHeight: _mainLayout.implicitHeight + page.headerContainer.implicitHeight
0016 
0017     Maui.Theme.colorSet: Maui.Theme.Window
0018 
0019 
0020     Maui.Page
0021     {
0022         anchors.fill: parent
0023         headBar.background: null
0024 
0025         headBar.middleContent: Maui.ToolActions
0026         {
0027             expanded: true
0028             autoExclusive: true
0029             Layout.alignment: Qt.AlignCenter
0030             Action
0031             {
0032                 icon.name: "math7"
0033 
0034             }
0035 
0036             Action
0037             {
0038                 icon.name: "mathmode"
0039 
0040             }
0041         }
0042 
0043         headBar.leftContent: Maui.ToolButtonMenu
0044         {
0045             icon.name: "application-menu"
0046             MenuItem
0047             {
0048                 text: i18n("Settings")
0049                 icon.name: "settings-configure"
0050             }
0051 
0052             MenuItem
0053             {
0054                 text: i18n("About")
0055                 icon.name: "documentinfo"
0056                 onTriggered: root.about()
0057             }
0058         }
0059 
0060         ColumnLayout
0061         {
0062             id: _mainLayout
0063             anchors.fill: parent
0064             spacing: Maui.Style.space.big
0065 
0066             PadInput
0067             {
0068                 Layout.fillWidth: true
0069                 //            Layout.fillHeight: true
0070                 Layout.maximumHeight: 500
0071                 Layout.minimumHeight: implicitHeight
0072                 historyArea.text: "1+2\n3+4\n1+2\n3+4\n1+2\n3+4\n1+2\n3+4\n1+2\n3+4\n1+2\n3+4\n1+2\n3+4\n1+2\n3+4\n"
0073                 resultArea.text: "7"
0074             }
0075 
0076             PadLayout
0077             {
0078                 Layout.alignment: Qt.AlignCenter
0079                 Layout.fillWidth: true
0080                 //            Layout.fillHeight: true
0081 
0082                 Layout.minimumWidth: implicitWidth
0083                 Layout.maximumWidth: implicitWidth
0084             }
0085 
0086 
0087         }
0088     }
0089 
0090 
0091 
0092 }