1/* 2 * \copyright Copyright (c) 2016-2021 Governikus GmbH & Co. KG, Germany 3 */ 4 5import QtQuick 2.12 6import QtQuick.Controls 2.12 7import QtQuick.Layouts 1.12 8 9import Governikus.Global 1.0 10import Governikus.View 1.0 11import Governikus.Type.ApplicationModel 1.0 12import Governikus.Type.SettingsModel 1.0 13import Governikus.Type.VersionInformationModel 1.0 14 15Item { 16 id: baseItem 17 18 implicitWidth: column.implicitWidth 19 implicitHeight: column.implicitHeight 20 21 readonly property string helpTopic: "helpVersioninformation" 22 23 ColumnLayout { 24 id: column 25 26 anchors.fill: parent 27 28 spacing: Constants.component_spacing 29 30 Repeater { 31 id: repeater 32 33 model: VersionInformationModel 34 delegate: LabeledText { 35 id: delegate 36 37 width: baseItem.width 38 39 Accessible.name: model.label + ": " + model.text 40 41 label: model.label 42 text: model.text 43 } 44 } 45 } 46 47 MouseArea { 48 property int counter: 0 49 50 anchors.fill: parent 51 52 onClicked: { 53 counter += 1 54 if (counter === 10) { 55 SettingsModel.developerOptions = !SettingsModel.developerOptions 56 ApplicationModel.showFeedback( 57 SettingsModel.developerOptions ? 58 //: LABEL DESKTOP_QML 59 qsTr("Developer options activated.") : 60 //: LABEL DESKTOP_QML 61 qsTr("Developer options deactivated.") 62 ) 63 counter = 0 64 } 65 } 66 } 67} 68