- minor bug fixes
- moved icons to QIcon - moved buttons in top bar to ToolButton
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<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">
|
<manifest package="com.itsblue.blueROCKtest" 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>
|
||||||
|
|
|
@ -22,7 +22,10 @@ SOURCES += \
|
||||||
sources/serverconn.cpp
|
sources/serverconn.cpp
|
||||||
|
|
||||||
RESOURCES += resources/qml/qml.qrc \
|
RESOURCES += resources/qml/qml.qrc \
|
||||||
resources/shared/shared.qrc
|
resources/shared/shared.qrc \
|
||||||
|
#resources/shared/icons/bluerock/index.theme \
|
||||||
|
#$$files(resources/shared/icons/*.png, true)
|
||||||
|
|
||||||
|
|
||||||
# Additional import path used to resolve QML modules in Qt Creator's code model
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
||||||
QML_IMPORT_PATH =
|
QML_IMPORT_PATH =
|
||||||
|
@ -40,4 +43,6 @@ HEADERS += \
|
||||||
|
|
||||||
DISTFILES += \
|
DISTFILES += \
|
||||||
CHANGELOG.md \
|
CHANGELOG.md \
|
||||||
android-sources/AndroidManifest.xml
|
android-sources/AndroidManifest.xml \
|
||||||
|
resources/shared/icons/bluerock/index.theme \
|
||||||
|
$$files(resources/shared/icons/*.png, true)
|
||||||
|
|
|
@ -20,7 +20,7 @@ import QtQuick 2.9
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.4
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
|
||||||
Button {
|
ToolButton {
|
||||||
id: control
|
id: control
|
||||||
|
|
||||||
property string image
|
property string image
|
||||||
|
@ -33,36 +33,19 @@ Button {
|
||||||
property double glowScale: 0.75
|
property double glowScale: 0.75
|
||||||
property double glowOpacity: 1
|
property double glowOpacity: 1
|
||||||
|
|
||||||
scale: control.pressed ? 0.8:1
|
|
||||||
|
|
||||||
Behavior on scale {
|
|
||||||
PropertyAnimation {
|
|
||||||
duration: 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Behavior on backgroundColor {
|
Behavior on backgroundColor {
|
||||||
ColorAnimation {
|
ColorAnimation {
|
||||||
duration: 200
|
duration: 200
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItem: Text {
|
contentItem: Item {
|
||||||
visible: false
|
|
||||||
}
|
|
||||||
|
|
||||||
Text {
|
|
||||||
id: conetntText
|
|
||||||
text: qsTr(control.text)
|
|
||||||
anchors.centerIn: parent
|
|
||||||
font: parent.font
|
|
||||||
color: control.textColor
|
|
||||||
opacity: control.enabled ? 1:0.4
|
|
||||||
}
|
|
||||||
|
|
||||||
background: Item {
|
|
||||||
id: controlBackgroundContainer
|
id: controlBackgroundContainer
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
opacity: 1
|
||||||
|
|
||||||
RectangularGlow {
|
RectangularGlow {
|
||||||
id: effect
|
id: effect
|
||||||
glowRadius: control.glowRadius
|
glowRadius: control.glowRadius
|
||||||
|
@ -84,7 +67,7 @@ Button {
|
||||||
|
|
||||||
radius: height * 0.5
|
radius: height * 0.5
|
||||||
|
|
||||||
color: control.backgroundColor
|
color: control.down ? Qt.darker(control.backgroundColor, 1.03) : control.backgroundColor
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: buttonIcon
|
id: buttonIcon
|
||||||
|
@ -100,7 +83,23 @@ Button {
|
||||||
|
|
||||||
scale: control.imageScale
|
scale: control.imageScale
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Behavior on color {
|
||||||
|
ColorAnimation {
|
||||||
|
duration: 100
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: conetntText
|
||||||
|
text: qsTr(control.text)
|
||||||
|
anchors.centerIn: parent
|
||||||
|
font: parent.font
|
||||||
|
color: control.textColor
|
||||||
|
opacity: control.enabled ? 1:0.4
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1,3 @@
|
||||||
/*
|
|
||||||
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.9
|
import QtQuick 2.9
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.4
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
@ -33,7 +15,7 @@ Item {
|
||||||
property int preRefreshDelay: 1000 // delay before reload funcion is called
|
property int preRefreshDelay: 1000 // delay before reload funcion is called
|
||||||
|
|
||||||
property int refreshPosition: height * 1.2 // position of the item when refreshing
|
property int refreshPosition: height * 1.2 // position of the item when refreshing
|
||||||
property int dragOutPosition: height * 2 // position of the item when starting to refresh
|
property int dragOutPosition: height * 1.8 // position of the item when starting to refresh
|
||||||
|
|
||||||
property color backgroundColor: "white" // color for the pre-defined background
|
property color backgroundColor: "white" // color for the pre-defined background
|
||||||
property color pullIndicatorColor: "black" // color for the pre-defined pull indicator
|
property color pullIndicatorColor: "black" // color for the pre-defined pull indicator
|
||||||
|
@ -87,7 +69,7 @@ Item {
|
||||||
var lineWidth = 2
|
var lineWidth = 2
|
||||||
|
|
||||||
var progress = drawProgress
|
var progress = drawProgress
|
||||||
|
console.log(progress)
|
||||||
// modify all values to math the progress
|
// modify all values to math the progress
|
||||||
|
|
||||||
arrowHeight = arrowHeight * progress
|
arrowHeight = arrowHeight * progress
|
||||||
|
@ -147,14 +129,15 @@ Item {
|
||||||
anchors {
|
anchors {
|
||||||
top: control.target.top
|
top: control.target.top
|
||||||
horizontalCenter: control.target.horizontalCenter
|
horizontalCenter: control.target.horizontalCenter
|
||||||
topMargin: control.position - height * 1.1
|
topMargin: control.position - height
|
||||||
}
|
}
|
||||||
|
|
||||||
onUserPositionChanged: {
|
onUserPositionChanged: {
|
||||||
if(control.state === "idle" && userPosition >= control.dragOutPosition){
|
console.log(userPosition)
|
||||||
|
if(control.state === "idle" && userPosition >= control.dragOutPosition * 0.9){
|
||||||
control.state = "ready"
|
control.state = "ready"
|
||||||
}
|
}
|
||||||
else if(control.state === "ready" && userPosition < control.dragOutPosition){
|
else if(control.state === "ready" && userPosition < control.dragOutPosition * 0.9){
|
||||||
control.state = "refreshing"
|
control.state = "refreshing"
|
||||||
preRefreshTimer.start()
|
preRefreshTimer.start()
|
||||||
}
|
}
|
||||||
|
@ -197,7 +180,7 @@ Item {
|
||||||
Behavior on minimumPosition {
|
Behavior on minimumPosition {
|
||||||
enabled: control.state !== "hidden" && control.state !== "idle"
|
enabled: control.state !== "hidden" && control.state !== "idle"
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: 200
|
duration: 100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,7 +211,7 @@ Item {
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: control
|
target: control
|
||||||
minimumPosition: userPosition > maximumPosition ? maximumPosition:userPosition
|
minimumPosition: userPosition > maximumPosition ? maximumPosition:userPosition
|
||||||
userPosition: Math.abs( target.verticalOvershoot )
|
userPosition: -1 / (Math.abs( target.verticalOvershoot * 0.001 ) + 1 / control.dragOutPosition * 0.001) + control.dragOutPosition // Math.abs( target.verticalOvershoot )
|
||||||
maximumPosition: control.dragOutPosition
|
maximumPosition: control.dragOutPosition
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -242,8 +225,8 @@ Item {
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: control
|
target: control
|
||||||
maximumPosition: control.dragOutPosition
|
maximumPosition: control.dragOutPosition
|
||||||
userPosition: Math.abs( target.verticalOvershoot )
|
userPosition: -1 / (Math.abs( target.verticalOvershoot * 0.001 ) + 1 / control.dragOutPosition * 0.001) + control.dragOutPosition // Math.abs( target.verticalOvershoot )
|
||||||
minimumPosition: control.maximumPosition - 1
|
minimumPosition: userPosition > maximumPosition - 1 ? maximumPosition - 1:userPosition
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
|
@ -296,7 +279,7 @@ Item {
|
||||||
transitions: [
|
transitions: [
|
||||||
Transition {
|
Transition {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: 200
|
duration: 100
|
||||||
properties: "rotation, opacity"
|
properties: "rotation, opacity"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
import QtQuick 2.9
|
import QtQuick 2.9
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.4
|
||||||
|
import QtQuick.Layouts 1.3
|
||||||
|
|
||||||
import "../Components"
|
import "../Components"
|
||||||
|
|
||||||
|
@ -27,99 +28,31 @@ DataListView {
|
||||||
property bool ready
|
property bool ready
|
||||||
|
|
||||||
property string title: (params.nation === "" ? "IFSC":params.nation === "GER" ? "DAV":"SAC") + " " + qsTr("competition calendar") + " " + control.year
|
property string title: (params.nation === "" ? "IFSC":params.nation === "GER" ? "DAV":"SAC") + " " + qsTr("competition calendar") + " " + control.year
|
||||||
property Component headerComponent: Row {
|
property Component headerComponent: RowLayout {
|
||||||
|
|
||||||
anchors {
|
height: parent.height
|
||||||
top: parent.top
|
|
||||||
bottom: parent.bottom
|
|
||||||
right: parent.right
|
|
||||||
rightMargin: 5
|
|
||||||
}
|
|
||||||
|
|
||||||
width: childrenRect.width
|
spacing: 0
|
||||||
|
|
||||||
spacing: width * 0.1
|
ToolButton {
|
||||||
|
|
||||||
Button {
|
|
||||||
id:yearToolBt
|
id:yearToolBt
|
||||||
|
|
||||||
anchors {
|
|
||||||
verticalCenter: parent.verticalCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
height: parent.height * 0.5
|
|
||||||
width: height
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
control.changeYear()
|
control.changeYear()
|
||||||
}
|
}
|
||||||
|
|
||||||
onPressed: yearToolBt.scale = 0.9
|
icon.name: "calendar"
|
||||||
onReleased: yearToolBt.scale = 1.0
|
|
||||||
|
|
||||||
background: Image {
|
|
||||||
|
|
||||||
anchors.centerIn: parent
|
|
||||||
|
|
||||||
source: "qrc:/icons/calendar.png"
|
|
||||||
|
|
||||||
height: parent.height > parent.width ? parent.width : parent.height
|
|
||||||
width: height
|
|
||||||
|
|
||||||
mipmap: true
|
|
||||||
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
Behavior on scale {
|
|
||||||
PropertyAnimation {
|
|
||||||
duration: 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
ToolButton {
|
||||||
id: cupToolBt
|
id: cupToolBt
|
||||||
|
|
||||||
anchors {
|
|
||||||
verticalCenter: parent.verticalCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
height: parent.height * 0.5
|
|
||||||
width: height
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
control.openCup()
|
control.openCup()
|
||||||
}
|
}
|
||||||
|
|
||||||
onPressed: cupToolBt.scale = 0.9
|
icon.name: "cup"
|
||||||
onReleased: cupToolBt.scale = 1.0
|
|
||||||
|
|
||||||
background: Image {
|
|
||||||
|
|
||||||
anchors.centerIn: parent
|
|
||||||
|
|
||||||
source: "qrc:/icons/cup.png"
|
|
||||||
|
|
||||||
height: parent.height > parent.width ? parent.width : parent.height
|
|
||||||
width: height
|
|
||||||
|
|
||||||
mipmap: true
|
|
||||||
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
Behavior on scale {
|
|
||||||
PropertyAnimation {
|
|
||||||
duration: 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
|
||||||
id: spacer
|
|
||||||
height: parent.height
|
|
||||||
width: 1
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
property var widgetData: currentWidgetData
|
property var widgetData: currentWidgetData
|
||||||
|
|
|
@ -30,49 +30,14 @@ DataListView {
|
||||||
property string subTitle: getSubtitle()
|
property string subTitle: getSubtitle()
|
||||||
property bool titleIsPageTitle: true
|
property bool titleIsPageTitle: true
|
||||||
|
|
||||||
property Component headerComponent: Item {
|
property Component headerComponent: ToolButton {
|
||||||
|
|
||||||
height: parent.height
|
|
||||||
width: moreToolBt.width * 1.5
|
|
||||||
|
|
||||||
Button {
|
|
||||||
id: moreToolBt
|
id: moreToolBt
|
||||||
|
|
||||||
anchors {
|
|
||||||
verticalCenter: parent.verticalCenter
|
|
||||||
right: parent.right
|
|
||||||
rightMargin: parent.width * 0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
height: parent.height * 0.5
|
|
||||||
width: height
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
control.changeCat()
|
control.changeCat()
|
||||||
}
|
}
|
||||||
|
|
||||||
onPressed: moreToolBt.scale = 0.9
|
icon.name: "menu"
|
||||||
onReleased: moreToolBt.scale = 1.0
|
|
||||||
|
|
||||||
background: Image {
|
|
||||||
|
|
||||||
anchors.centerIn: parent
|
|
||||||
|
|
||||||
source: "qrc:/icons/more_black.png"
|
|
||||||
|
|
||||||
height: parent.height > parent.width ? parent.width : parent.height
|
|
||||||
width: height
|
|
||||||
|
|
||||||
mipmap: true
|
|
||||||
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
Behavior on scale {
|
|
||||||
PropertyAnimation {
|
|
||||||
duration: 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
property var widgetData: currentWidgetData
|
property var widgetData: currentWidgetData
|
||||||
|
@ -134,8 +99,9 @@ DataListView {
|
||||||
var selectOptions = []
|
var selectOptions = []
|
||||||
|
|
||||||
for(var prop in cats){
|
for(var prop in cats){
|
||||||
if (cats.hasOwnProperty(prop) && !control.subTitle.includes(cats[prop]['name'])) {
|
if (cats.hasOwnProperty(prop) && parseInt(cats[prop]["GrpId"]) !== parseInt(params.cat)) {
|
||||||
// append all cats and ignore the current one
|
// append all cats and ignore the current one
|
||||||
|
//console.log("found cat: ", cats[prop]['name'])
|
||||||
selectOptions.push({text: cats[prop]['name'], data:{cat: cats[prop]['GrpId']}})
|
selectOptions.push({text: cats[prop]['name'], data:{cat: cats[prop]['GrpId']}})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,49 +31,14 @@ DataListView {
|
||||||
property string subTitle: getSubtitle()
|
property string subTitle: getSubtitle()
|
||||||
property bool titleIsPageTitle: true
|
property bool titleIsPageTitle: true
|
||||||
|
|
||||||
property Component headerComponent: Item {
|
property Component headerComponent: ToolButton {
|
||||||
|
|
||||||
height: parent.height
|
|
||||||
width: moreToolBt.width * 1.5
|
|
||||||
|
|
||||||
Button {
|
|
||||||
id: moreToolBt
|
id: moreToolBt
|
||||||
|
|
||||||
anchors {
|
|
||||||
verticalCenter: parent.verticalCenter
|
|
||||||
right: parent.right
|
|
||||||
rightMargin: parent.width * 0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
height: parent.height * 0.5
|
|
||||||
width: height
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
control.changeCat()
|
control.changeCat()
|
||||||
}
|
}
|
||||||
|
|
||||||
onPressed: moreToolBt.scale = 0.9
|
icon.name: "menu"
|
||||||
onReleased: moreToolBt.scale = 1.0
|
|
||||||
|
|
||||||
background: Image {
|
|
||||||
|
|
||||||
anchors.centerIn: parent
|
|
||||||
|
|
||||||
source: "qrc:/icons/more_black.png"
|
|
||||||
|
|
||||||
height: parent.height > parent.width ? parent.width : parent.height
|
|
||||||
width: height
|
|
||||||
|
|
||||||
mipmap: true
|
|
||||||
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
Behavior on scale {
|
|
||||||
PropertyAnimation {
|
|
||||||
duration: 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
property var widgetData: currentWidgetData
|
property var widgetData: currentWidgetData
|
||||||
|
@ -137,8 +102,9 @@ DataListView {
|
||||||
var selectOptions = []
|
var selectOptions = []
|
||||||
|
|
||||||
for(var prop in cats){
|
for(var prop in cats){
|
||||||
if (cats.hasOwnProperty(prop) && !control.subTitle.includes(cats[prop]['name'])) {
|
if (cats.hasOwnProperty(prop) && parseInt(cats[prop]["GrpId"]) !== parseInt(params.cat)) {
|
||||||
// append all cats and ignore the current one
|
// append all cats and ignore the current one
|
||||||
|
//console.log("found cat: ", cats[prop]['name'])
|
||||||
selectOptions.push({text: cats[prop]['name'], data:{cat: cats[prop]['GrpId']}})
|
selectOptions.push({text: cats[prop]['name'], data:{cat: cats[prop]['GrpId']}})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,49 +31,14 @@ DataListView {
|
||||||
property string subTitle: qsTr("(Startlist)") + " " + control.widgetData['route_name'] //getSubtitle()
|
property string subTitle: qsTr("(Startlist)") + " " + control.widgetData['route_name'] //getSubtitle()
|
||||||
property bool titleIsPageTitle: true
|
property bool titleIsPageTitle: true
|
||||||
|
|
||||||
property Component headerComponent: Item {
|
property Component headerComponent: ToolButton {
|
||||||
|
|
||||||
height: parent.height
|
|
||||||
width: moreToolBt.width * 1.5
|
|
||||||
|
|
||||||
Button {
|
|
||||||
id: moreToolBt
|
id: moreToolBt
|
||||||
|
|
||||||
anchors {
|
|
||||||
verticalCenter: parent.verticalCenter
|
|
||||||
right: parent.right
|
|
||||||
rightMargin: parent.width * 0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
height: parent.height * 0.5
|
|
||||||
width: height
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
control.changeCat()
|
control.changeCat()
|
||||||
}
|
}
|
||||||
|
|
||||||
onPressed: moreToolBt.scale = 0.9
|
icon.name: "menu"
|
||||||
onReleased: moreToolBt.scale = 1.0
|
|
||||||
|
|
||||||
background: Image {
|
|
||||||
|
|
||||||
anchors.centerIn: parent
|
|
||||||
|
|
||||||
source: "qrc:/icons/more_black.png"
|
|
||||||
|
|
||||||
height: parent.height > parent.width ? parent.width : parent.height
|
|
||||||
width: height
|
|
||||||
|
|
||||||
mipmap: true
|
|
||||||
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
Behavior on scale {
|
|
||||||
PropertyAnimation {
|
|
||||||
duration: 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSubtitle() {
|
function getSubtitle() {
|
||||||
|
@ -105,8 +70,9 @@ DataListView {
|
||||||
var selectOptions = []
|
var selectOptions = []
|
||||||
|
|
||||||
for(var prop in cats){
|
for(var prop in cats){
|
||||||
if (cats.hasOwnProperty(prop) && !control.subTitle.includes(cats[prop]['name'])) {
|
if (cats.hasOwnProperty(prop) && parseInt(cats[prop]["GrpId"]) !== parseInt(params.cat)) {
|
||||||
// append all cats and ignore the current one
|
// append all cats and ignore the current one
|
||||||
|
//console.log("found cat: ", cats[prop]['name'])
|
||||||
selectOptions.push({text: cats[prop]['name'], data:{cat: cats[prop]['GrpId']}})
|
selectOptions.push({text: cats[prop]['name'], data:{cat: cats[prop]['GrpId']}})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -308,7 +274,7 @@ DataListView {
|
||||||
delegate: TabButton {
|
delegate: TabButton {
|
||||||
text: routeSelectTb.tabs[index][1]
|
text: routeSelectTb.tabs[index][1]
|
||||||
|
|
||||||
width: Math.max(150, routeSelectTb.width / routeSelectButtonRep.model) //text.length * font.pixelSize
|
width: Math.max(150, root.width / routeSelectButtonRep.model) //text.length * font.pixelSize
|
||||||
|
|
||||||
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] + ")")
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
import QtQuick 2.9
|
import QtQuick 2.9
|
||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
import QtQuick.Controls 2.4
|
import QtQuick.Controls 2.4
|
||||||
|
import QtQuick.Layouts 1.3
|
||||||
|
|
||||||
import com.itsblue.digitalRockRanking 1.0
|
import com.itsblue.digitalRockRanking 1.0
|
||||||
|
|
||||||
|
@ -247,27 +248,16 @@ Window {
|
||||||
|
|
||||||
showErrorBar: true
|
showErrorBar: true
|
||||||
|
|
||||||
Row {
|
RowLayout {
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
spacing: width * 0.02
|
spacing: width * 0.02
|
||||||
|
|
||||||
Item {
|
ToolButton {
|
||||||
id: spacer
|
|
||||||
width: 1
|
|
||||||
height: parent.height
|
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
|
||||||
id:toolButton
|
id:toolButton
|
||||||
|
|
||||||
anchors {
|
height: parent.height
|
||||||
verticalCenter: parent.verticalCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
height: parent.height * 0.5
|
|
||||||
width: height
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if(!mainStack.currentItem.locked){
|
if(!mainStack.currentItem.locked){
|
||||||
|
@ -275,27 +265,12 @@ Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onPressed: toolButton.scale = 0.9
|
icon.name: "back"
|
||||||
onReleased: toolButton.scale = 1.0
|
|
||||||
|
|
||||||
background: Image {
|
|
||||||
source: "qrc:/icons/backDark.png"
|
|
||||||
|
|
||||||
height: parent.height
|
|
||||||
width: height
|
|
||||||
|
|
||||||
fillMode: Image.PreserveAspectFit
|
|
||||||
Behavior on scale {
|
|
||||||
PropertyAnimation {
|
|
||||||
duration: 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
Layout.fillWidth: true
|
||||||
|
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
width: parent.width - extraComponentLoader.width - toolButton.width - 3 * parent.spacing
|
width: parent.width - extraComponentLoader.width - toolButton.width - 3 * parent.spacing
|
||||||
|
@ -381,10 +356,6 @@ Window {
|
||||||
property int maximumWidth: parent.width * 0.4 - toolButton.width - 3
|
property int maximumWidth: parent.width * 0.4 - toolButton.width - 3
|
||||||
|
|
||||||
height: parent.height
|
height: parent.height
|
||||||
anchors {
|
|
||||||
top: parent.top
|
|
||||||
bottom: parent.bottom
|
|
||||||
}
|
|
||||||
|
|
||||||
onItemChanged: {
|
onItemChanged: {
|
||||||
width = status === Loader.Ready ? item.width:0
|
width = status === Loader.Ready ? item.width:0
|
||||||
|
|
BIN
resources/shared/icons/bluerock/20x20/back.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
resources/shared/icons/bluerock/20x20/calendar.png
Normal file
After Width: | Height: | Size: 431 B |
BIN
resources/shared/icons/bluerock/20x20/cup.png
Normal file
After Width: | Height: | Size: 379 B |
BIN
resources/shared/icons/bluerock/20x20/drawer.png
Normal file
After Width: | Height: | Size: 123 B |
BIN
resources/shared/icons/bluerock/20x20/menu.png
Normal file
After Width: | Height: | Size: 123 B |
BIN
resources/shared/icons/bluerock/20x20@2/back.png
Normal file
After Width: | Height: | Size: 289 B |
BIN
resources/shared/icons/bluerock/20x20@2/calendar.png
Normal file
After Width: | Height: | Size: 672 B |
BIN
resources/shared/icons/bluerock/20x20@2/cup.png
Normal file
After Width: | Height: | Size: 778 B |
BIN
resources/shared/icons/bluerock/20x20@2/drawer.png
Normal file
After Width: | Height: | Size: 126 B |
BIN
resources/shared/icons/bluerock/20x20@2/menu.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
resources/shared/icons/bluerock/20x20@3/back.png
Normal file
After Width: | Height: | Size: 351 B |
BIN
resources/shared/icons/bluerock/20x20@3/calendar.png
Normal file
After Width: | Height: | Size: 888 B |
BIN
resources/shared/icons/bluerock/20x20@3/cup.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
resources/shared/icons/bluerock/20x20@3/drawer.png
Normal file
After Width: | Height: | Size: 130 B |
BIN
resources/shared/icons/bluerock/20x20@3/menu.png
Normal file
After Width: | Height: | Size: 193 B |
BIN
resources/shared/icons/bluerock/20x20@4/back.png
Normal file
After Width: | Height: | Size: 452 B |
BIN
resources/shared/icons/bluerock/20x20@4/calendar.png
Normal file
After Width: | Height: | Size: 790 B |
BIN
resources/shared/icons/bluerock/20x20@4/cup.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
resources/shared/icons/bluerock/20x20@4/drawer.png
Normal file
After Width: | Height: | Size: 131 B |
BIN
resources/shared/icons/bluerock/20x20@4/menu.png
Normal file
After Width: | Height: | Size: 223 B |
24
resources/shared/icons/bluerock/index.theme
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
[Icon Theme]
|
||||||
|
Name=blueROCK
|
||||||
|
Comment=blueROCK Icon Theme
|
||||||
|
|
||||||
|
Directories=20x20,20x20@2,20x20@3,20x20@4
|
||||||
|
|
||||||
|
[20x20]
|
||||||
|
Size=20
|
||||||
|
Type=Fixed
|
||||||
|
|
||||||
|
[20x20@2]
|
||||||
|
Size=20
|
||||||
|
Scale=2
|
||||||
|
Type=Fixed
|
||||||
|
|
||||||
|
[20x20@3]
|
||||||
|
Size=20
|
||||||
|
Scale=3
|
||||||
|
Type=Fixed
|
||||||
|
|
||||||
|
[20x20@4]
|
||||||
|
Size=20
|
||||||
|
Scale=4
|
||||||
|
Type=Fixed
|
|
@ -9,5 +9,30 @@
|
||||||
<file>icons/cup.png</file>
|
<file>icons/cup.png</file>
|
||||||
<file>Banner.png</file>
|
<file>Banner.png</file>
|
||||||
<file>icons/more_black.png</file>
|
<file>icons/more_black.png</file>
|
||||||
|
<file>icons/bluerock/20x20/back.png</file>
|
||||||
|
<file>icons/bluerock/20x20/cup.png</file>
|
||||||
|
<file>icons/bluerock/20x20/drawer.png</file>
|
||||||
|
<file>icons/bluerock/20x20/menu.png</file>
|
||||||
|
<file>icons/bluerock/20x20@2/back.png</file>
|
||||||
|
<file>icons/bluerock/20x20@2/cup.png</file>
|
||||||
|
<file>icons/bluerock/20x20@2/drawer.png</file>
|
||||||
|
<file>icons/bluerock/20x20@2/menu.png</file>
|
||||||
|
<file>icons/bluerock/20x20@3/back.png</file>
|
||||||
|
<file>icons/bluerock/20x20@3/cup.png</file>
|
||||||
|
<file>icons/bluerock/20x20@3/drawer.png</file>
|
||||||
|
<file>icons/bluerock/20x20@3/menu.png</file>
|
||||||
|
<file>icons/bluerock/20x20@4/back.png</file>
|
||||||
|
<file>icons/bluerock/20x20@4/cup.png</file>
|
||||||
|
<file>icons/bluerock/20x20@4/drawer.png</file>
|
||||||
|
<file>icons/bluerock/20x20@4/menu.png</file>
|
||||||
|
<file>icons/bluerock/index.theme</file>
|
||||||
|
<file>icons/dig_rock.klein.jpg</file>
|
||||||
|
<file>icons/dig_rock.klein.png</file>
|
||||||
|
<file>icons/favicon.png</file>
|
||||||
|
<file>icons/json.php.json</file>
|
||||||
|
<file>icons/bluerock/20x20/calendar.png</file>
|
||||||
|
<file>icons/bluerock/20x20@2/calendar.png</file>
|
||||||
|
<file>icons/bluerock/20x20@3/calendar.png</file>
|
||||||
|
<file>icons/bluerock/20x20@4/calendar.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
@ -20,16 +20,20 @@
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QtQml/QQmlContext>
|
#include <QtQml/QQmlContext>
|
||||||
#include <QQmlApplicationEngine>
|
#include <QQmlApplicationEngine>
|
||||||
|
#include <QIcon>
|
||||||
|
|
||||||
#include "headers/serverconn.h"
|
#include "headers/serverconn.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||||
|
|
||||||
QGuiApplication app(argc, argv);
|
QGuiApplication app(argc, argv);
|
||||||
|
|
||||||
QQuickStyle::setStyle("Material");
|
QQuickStyle::setStyle("Material");
|
||||||
|
QIcon::setFallbackSearchPaths(QIcon::fallbackSearchPaths() << ":/resources/shared/icons");
|
||||||
|
QIcon::setThemeName("bluerock");
|
||||||
|
|
||||||
qmlRegisterType<ServerConn>("com.itsblue.digitalRockRanking", 1, 0, "ServerConn");
|
qmlRegisterType<ServerConn>("com.itsblue.digitalRockRanking", 1, 0, "ServerConn");
|
||||||
|
|
||||||
|
|