Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (C) 2022 Dirk Unverzagt
- * Dieses Programm ist kostenlose Software: Sie können es weitergeben und/oder modifizieren
- * Es unterliegt den Bedingungen der GNU General Public License, wie veröffentlicht von
- * die Free Software Foundation; Fassung 3.
- *
- * mwst wird in der Hoffnung verteilt, dass es nützlich sein wird,
- * jedoch OHNE JEGLICHE GEWÄHRLEISTUNG; sogar ohne die stillschweigende Garantie von
- * MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK. Siehe die
- * GNU General Public License für weitere Details.
- *
- * Sie sollten eine Kopie der GNU General Public License erhalten haben
- * zusammen mit diesem Programm. Falls nicht, siehe <http://www.gnu.org/licenses/>.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 3.
- *
- * mwst is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- import QtQuick 2.7
- import Ubuntu.Components 1.3
- import QtQuick.Controls 2.2
- import QtQuick.Layouts 1.3
- import Qt.labs.settings 1.0
- import QtQuick.LocalStorage 2.0
- MainView {
- id: root
- objectName: 'mainView'
- applicationName: 'mwst.dl8aax'
- automaticOrientation: true
- width: units.gu(45)
- height: units.gu(70)
- Item {
- Component.onCompleted: {
- }
- }
- Settings {
- id:settings1
- property alias mwstt: areatext.text
- }
- function speichern() {
- root2.machmacombob(areatext.text)
- }
- Page {
- anchors.fill: parent
- Rectangle {
- id: rectangle_1
- x: units.gu(2)
- y: units.gu(2)
- width: units.gu(45)-units.gu(5)
- height: units.gu(65)
- color: "#ddd9d9"
- radius: 4
- border.color: "#be0cc4"
- border.width: units.gu(0.2)
- Text {
- id: utext
- anchors.top : rectangle_1.top
- anchors.horizontalCenter: rectangle_1.horizontalCenter
- anchors.topMargin: units.gu(3)
- y: rectangle_1.y
- text: i18n.tr('Einstellungen')
- font.pixelSize: units.gu(2.5)
- color: "darkorange"
- }
- Text {
- id: itext
- anchors.top : utext.bottom
- //anchors.centerIn: parent
- anchors.topMargin: units.gu(3)
- anchors.horizontalCenter: rectangle_1.horizontalCenter
- y: rectangle_1.y
- text: i18n.tr('MWST Sätze\nSteuersatz und Kommentar durch Komma getrennt')
- font.pixelSize: units.gu(1.5)
- //color: "blue"
- }
- ScrollView {
- id : scolli
- anchors.top : itext.bottom
- anchors.bottom : but.top
- height: units.gu(22)
- width: units.gu(40)
- TextArea {
- id : areatext
- width: rectangle_1.width
- //anchors.centerIn: scrollrect
- text: " 7%, Lebensmittel\n19 %, Normaler Steuersatz"
- font.pixelSize: units.gu(2)
- }
- }// Ende ScrollView
- }// Ende
- Button {
- id : but
- //anchors.horizontalCenter: rectangle2.center
- anchors.top : scolli.bottom
- anchors.topMargin: units.gu(3)
- anchors.centerIn: parent
- // x : rectangle2.center - but / 2
- text: i18n.tr("Speichern")
- onClicked: { speichern () }
- }
- }// Ende page
- }// Ende MainView
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement