Warning, /maui/era/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 0009 Maui.ApplicationWindow 0010 { 0011 id: root 0012 title: Maui.App.about.displayName 0013 Maui.Style.styleType: night ? Maui.Style.Dark : Maui.Style.Light 0014 Maui.Style.accentColor: "#ff959f" 0015 maximumHeight: 700 0016 minimumHeight: 700 0017 maximumWidth: 500 0018 minimumWidth: 500 0019 0020 property bool night: _mainClock.night 0021 0022 Maui.AppViews 0023 { 0024 anchors.fill: parent 0025 //title: root.title 0026 showCSDControls: true 0027 headBar.forceCenterMiddleContent: true 0028 0029 0030 headBar.leftContent: Loader 0031 { 0032 asynchronous: true 0033 0034 sourceComponent: Maui.ToolButtonMenu 0035 { 0036 icon.name: "application-menu" 0037 0038 MenuItem 0039 { 0040 text: i18n("Settings") 0041 icon.name: "settings-configure" 0042 onTriggered: openSettingsDialog() 0043 } 0044 0045 MenuItem 0046 { 0047 text: i18n("About") 0048 icon.name: "documentinfo" 0049 onTriggered: root.about() 0050 } 0051 } 0052 } 0053 0054 Maui.AppViewLoader 0055 { 0056 Maui.AppView.title: i18n("Clock") 0057 Maui.AppView.iconName: "clock" 0058 Maui.Page 0059 { 0060 0061 headBar.visible: false 0062 0063 footBar.rightContent: ToolButton 0064 { 0065 icon.name: "list-add" 0066 } 0067 0068 Maui.ListBrowser 0069 { 0070 id: _clocksListView 0071 anchors.fill: parent 0072 snapMode: ListView.SnapOneItem 0073 0074 flickable.header: Item 0075 { 0076 width: parent.width 0077 height: _mainClock.height 0078 0079 AnalogClock 0080 { 0081 id: _mainClock 0082 internationalTime: false 0083 anchors.centerIn: parent 0084 } 0085 0086 } 0087 0088 model: ListModel 0089 { 0090 ListElement { cityName: "New York"; timeShift: -4 } 0091 ListElement { cityName: "Oslo"; timeShift: 1 } 0092 ListElement { cityName: "Mumbai"; timeShift: 5.5 } 0093 ListElement { cityName: "Tokyo"; timeShift: 9 } 0094 ListElement { cityName: "Brisbane"; timeShift: 10 } 0095 ListElement { cityName: "Los Angeles"; timeShift: -8 } 0096 } 0097 0098 delegate: DigitalClock 0099 { 0100 // height: 100 0101 // width: 100 0102 width: ListView.view.width 0103 city: model.cityName; shift: model.timeShift 0104 } 0105 } 0106 0107 } 0108 } 0109 0110 Maui.AppViewLoader 0111 { 0112 0113 Maui.AppView.title: i18n("Stopwatch") 0114 Maui.AppView.iconName: "stopwatch" 0115 Maui.Page 0116 { 0117 Stopwatch 0118 { 0119 anchors.fill: parent 0120 } 0121 0122 } 0123 0124 } 0125 0126 Maui.AppViewLoader 0127 { 0128 0129 Maui.AppView.title: i18n("Timer") 0130 Maui.AppView.iconName: "timer" 0131 Maui.Page 0132 { 0133 0134 0135 } 0136 0137 } 0138 0139 Maui.AppViewLoader 0140 { 0141 0142 Maui.AppView.title: i18n("Alarm") 0143 Maui.AppView.iconName: "alarm" 0144 Maui.Page {} 0145 0146 } 0147 0148 } 0149 0150 }