Skip to content
Snippets Groups Projects

Show ChangeLog

Merged Martin Straka requested to merge apk-show-changelog into develop
Viewing commit 7611d56f
Next
Show latest version
8 files
+ 192
0
Preferences
Compare changes
Files
8
+ 98
0
/*
* Copyright (C) 2014-2025 CZ.NIC
*
* 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, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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/>.
*
* In addition, as a special exception, the copyright holders give
* permission to link the code of portions of this program with the
* OpenSSL library under certain conditions as described in each
* individual source file, and distribute linked combinations including
* the two.
*/
import QtQuick 2.7
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.2
/*
* Provides a simple change log dialog.
*/
Popup {
id: root
anchors.centerIn: parent
modal: true
property int preferredMinWidth: 280
property string logContent: qsTr("
Added a preferences editor.
Using dedicated redirection URL to access donation page.
Custom images can be assigned to individual data boxes as logos in the data-box list.
Fixed white border around launcher icon in iOS.
On application start-up when INI configuration is missing the application searches for a copy before creating a blank INI file.
")
/* Public interface. */
function showChangeLog() {
changeLogText.text = logContent
root.open()
}
background: Rectangle {
color: datovkaPalette.base
border.color: datovkaPalette.text
radius: defaultMargin
}
ColumnLayout {
spacing: defaultMargin * 2
AccessibleText {
font.bold: true
Layout.alignment: Qt.AlignCenter
color: datovkaPalette.highlightedText
text: qsTr("Version") + ": " + Qt.application.version
}
AccessibleText {
Layout.preferredWidth: root.preferredMinWidth
horizontalAlignment : Text.Center
wrapMode: Text.Wrap
font.bold: true
text: qsTr("What is news?")
}
Flickable {
clip: true
Layout.preferredWidth: root.preferredMinWidth
implicitHeight: preferredMinWidth
contentHeight: flickContent.implicitHeight
Pane {
id: flickContent
anchors.fill: parent
AccessibleText {
id: changeLogText
width: parent.width
wrapMode: Text.WordWrap
}
}
ScrollIndicator.vertical: ScrollIndicator {}
}
AccessibleButton {
Layout.alignment: Qt.AlignCenter
text: "OK"
onClicked: root.close()
}
}
}