- fixed some errors that occurred when changing categories

- fixed layout bugs
- new app icon
This commit is contained in:
Dorian Zedler 2019-05-31 12:18:35 +02:00
parent 39cde07982
commit 7b509630d5
21 changed files with 84 additions and 31 deletions

View file

@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
# [0.01.4b] - 2019-05-31
### Fixed
- fixed some errors that occurred when changing categories
- fixed layout bugs
- new app icon
## [0.01.3b] - 2019-05-25
### Fixed
- minor bug fixes
## [0.01.2b] - 2019-05-24 ## [0.01.2b] - 2019-05-24
### Added ### Added
- added ability to change category in results without going back to calendar - added ability to change category in results without going back to calendar

View file

@ -1,5 +1,5 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<manifest package="com.itsblue.blueROCKtest" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="0.01.3b" android:versionCode="4" android:installLocation="auto"> <manifest package="com.itsblue.blueROCK" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="0.01.4b" android:versionCode="5" android:installLocation="auto">
<application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="blueROCK" android:icon="@drawable/icon"> <application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="blueROCK" android:icon="@drawable/icon">
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:label="blueROCK (for digitalROCK)" android:screenOrientation="unspecified" android:launchMode="singleTop"> <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:label="blueROCK (for digitalROCK)" android:screenOrientation="unspecified" android:launchMode="singleTop">
<intent-filter> <intent-filter>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 150 KiB

View file

@ -27,8 +27,10 @@ ListView {
signal refresh() signal refresh()
anchors.margins: 10 anchors {
anchors.rightMargin: 14 leftMargin: 10
rightMargin: 14
}
clip: true clip: true
@ -53,8 +55,6 @@ ListView {
active: true active: true
} }
Behavior on opacity { Behavior on opacity {
NumberAnimation { NumberAnimation {
duration: 200 duration: 200
@ -82,6 +82,7 @@ ListView {
postRefreshDelay: 0 postRefreshDelay: 0
busyIndicator: FancyBusyIndicator {} busyIndicator: FancyBusyIndicator {}
refreshPosition: height * 1.3
onRefreshRequested: { onRefreshRequested: {
control.refresh() control.refresh()

View file

@ -0,0 +1,30 @@
/*
blueROCK - for digital rock
Copyright (C) 2019 Dorian Zedler
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/>.
*/
import QtQuick 2.0
import QtQuick.Controls 2.4
Page {
id: root
title: "start"
property Component headerComponent: null
}

View file

@ -76,7 +76,7 @@ Page {
root.ready = true root.ready = true
} }
else { else {
root.status = 900 //root.status = 901
root.ready = false root.ready = false
} }
} }
@ -92,6 +92,8 @@ Page {
if(openLoadingDl) if(openLoadingDl)
loadingDl.open() loadingDl.open()
var oldParams = Object.assign({}, root.params)
// update all the given values // update all the given values
for(var prop in params){ for(var prop in params){
if(params.hasOwnProperty(prop)){ if(params.hasOwnProperty(prop)){
@ -101,6 +103,12 @@ Page {
loadData(root.params) loadData(root.params)
console.log("ready: " + root.ready + ": " + root.status)
if(root.status !== 200)
root.params = oldParams
if(openLoadingDl) if(openLoadingDl)
loadingDl.close() loadingDl.close()
@ -184,7 +192,8 @@ Page {
return true return true
} }
else { else {
delete(widgetLd.sourceComponent = null) root.status = widgetLd.item.status === undefined ? 900:widgetLd.item.status
delete(widgetLd.sourceComponent)
return false return false
} }

View file

@ -158,7 +158,7 @@ DataListView {
// function to scroll to the next competition that is not already over // function to scroll to the next competition that is not already over
var compList = control.widgetData["competitions"] var compList = control.widgetData["competitions"]
console.log("scrolling") //console.log("scrolling")
if(parseInt(control.year) === new Date().getFullYear()){ if(parseInt(control.year) === new Date().getFullYear()){
for(var i = 0; i < compList.length; i ++){ for(var i = 0; i < compList.length; i ++){
@ -374,13 +374,13 @@ DataListView {
text: name text: name
} }
Label { /*Label {
id: infola id: infola
width: parent.width width: parent.width
text: thisData.info text: thisData.info
} }*/
Label { Label {
id: dateLa id: dateLa

View file

@ -93,7 +93,7 @@ DataListView {
var addition = "(Registration) " var addition = "(Registration) "
if(titleString !== undefined){ if(titleString !== undefined){
return addition + titleString return addition + " " + titleString
} }
else { else {
return "" return ""

View file

@ -114,7 +114,7 @@ DataListView {
var addition = qsTr("(Results)") var addition = qsTr("(Results)")
if(titleString !== undefined){ if(titleString !== undefined){
return addition + titleString return addition + " " + titleString
} }
else { else {
return "" return ""
@ -612,12 +612,6 @@ DataListView {
currentIndex: getIndex(parseInt(control.widgetData['route_order'])) currentIndex: getIndex(parseInt(control.widgetData['route_order']))
Component.onCompleted: {
//currentIndex = getIndex(params.route)
//setCurrentIndex(getIndex(params.route))
//routeSelectTb.setCurrentIndex(routeSelectTb.getIndex(parseInt(control.widgetData['route_order'])))
}
function getTabs() { function getTabs() {
var obj = control.widgetData["route_names"] var obj = control.widgetData["route_names"]
@ -675,6 +669,7 @@ DataListView {
//console.log("changing to index: " + index + " (" + routeSelectTb.tabs[index][0] + ", " + routeSelectTb.tabs[index][1] + ")") //console.log("changing to index: " + index + " (" + routeSelectTb.tabs[index][0] + ", " + routeSelectTb.tabs[index][1] + ")")
if(routeSelectTb.getIndex(parseInt(control.widgetData['route_order'])) !== index){ if(routeSelectTb.getIndex(parseInt(control.widgetData['route_order'])) !== index){
control.changeRoute(routeSelectTb.tabs[index][0]) control.changeRoute(routeSelectTb.tabs[index][0])
routeSelectTb.setCurrentIndex(routeSelectTb.getIndex(parseInt(control.widgetData['route_order'])))
} }
} }
} }

View file

@ -173,8 +173,13 @@ DataListView {
Row { Row {
id: partDelFirstRow id: partDelFirstRow
width: parent.width anchors {
height: parent.height fill: parent
leftMargin: parent.width * 0.05
rightMargin: parent.width * 0.05
}
spacing: width * 0.1
Label { Label {
height: parent.height height: parent.height
@ -191,7 +196,7 @@ DataListView {
Label { Label {
height: parent.height height: parent.height
width: parent.width * 0.5 width: parent.width * 0.4
fontSizeMode: Text.Fit fontSizeMode: Text.Fit
font.bold: true font.bold: true
@ -287,7 +292,6 @@ DataListView {
} }
} }
return 0 return 0
} }
@ -308,8 +312,10 @@ DataListView {
onClicked: { onClicked: {
//console.log("changing to index: " + index + " (" + routeSelectTb.tabs[index][0] + ", " + routeSelectTb.tabs[index][1] + ")") //console.log("changing to index: " + index + " (" + routeSelectTb.tabs[index][0] + ", " + routeSelectTb.tabs[index][1] + ")")
if(routeSelectTb.getIndex(parseInt(control.widgetData['route_order'])) !== index){
control.changeRoute(routeSelectTb.tabs[index][0]) control.changeRoute(routeSelectTb.tabs[index][0])
routeSelectTb.setCurrentIndex(routeSelectTb.getIndex(parseInt(control.widgetData['route_order'])))
}
} }
} }
} }

View file

@ -612,5 +612,6 @@ Window {
return([infoLevel, errorString, errorDescription]) return([infoLevel, errorString, errorDescription])
} }
} }
} }

View file

@ -16,5 +16,6 @@
<file>Widgets/RegistrationWidget.qml</file> <file>Widgets/RegistrationWidget.qml</file>
<file>Widgets/StartlistWidget.qml</file> <file>Widgets/StartlistWidget.qml</file>
<file>Widgets/RankingWidget.qml</file> <file>Widgets/RankingWidget.qml</file>
<file>Pages/AthleteSearchPage.qml</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB