parent
50af1fa4a8
commit
d66ad106d6
4 changed files with 18 additions and 9 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
|
||||
<application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="-- %%INSERT_APP_NAME%% --" android:extractNativeLibs="true" android:icon="@drawable/icon">
|
||||
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:label="-- %%INSERT_APP_NAME%% --" android:screenOrientation="unspecified" android:launchMode="singleTop">
|
||||
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:name="de.itsblue.scstw.MainActivity" android:label="-- %%INSERT_APP_NAME%% --" android:screenOrientation="unspecified" android:launchMode="singleTop">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
|
|
|
@ -118,7 +118,7 @@ Item {
|
|||
|
||||
Label {
|
||||
Layout.preferredWidth: parent.width
|
||||
Layout.preferredHeight: parent.height * 0.1
|
||||
Layout.preferredHeight: parent.height * 0.15
|
||||
|
||||
font.pixelSize: height * 0.8
|
||||
fontSizeMode: Text.Fit
|
||||
|
@ -134,7 +134,9 @@ Item {
|
|||
StateIndicator {
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.maximumWidth: height * 0.7
|
||||
Layout.fillHeight: true
|
||||
Layout.alignment: Layout.Center
|
||||
|
||||
backgroundColor: appTheme.theme.colors.background
|
||||
successColor: appTheme.theme.colors.success
|
||||
|
@ -150,10 +152,15 @@ Item {
|
|||
anchors.fill: parent
|
||||
|
||||
onClicked: {
|
||||
if(scStwRemoteRace.timers.length > 1) {
|
||||
var disabled = timerStatusColumn.thisTimer["state"] !== ScStwTimer.DISABLED
|
||||
console.log("setting timer to disabled: " + disabled)
|
||||
scStwRemoteRace.setTimerDisabled(timerStatusColumn.thisTimer["id"], disabled)
|
||||
}
|
||||
else {
|
||||
console.log("skipping timer disabling, only one timer!")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -164,6 +171,8 @@ Item {
|
|||
width: parent.width
|
||||
height: parent.height * 0.1
|
||||
|
||||
visible: scStwRemoteRace.timers.length > 1
|
||||
|
||||
font.pixelSize: height * 0.6
|
||||
fontSizeMode: Text.Fit
|
||||
minimumPointSize: 1
|
||||
|
@ -172,7 +181,7 @@ Item {
|
|||
|
||||
color: appTheme.theme.colors.text
|
||||
|
||||
text: "Tap on a lane to disable it"
|
||||
text: "Tap a lane to disable it"
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 37bea9105f1c7e0c8f1a209da3d5043c61abfb44
|
||||
Subproject commit 43d9f80f60451f111a6535e46ef51b3fa08e33e4
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include <QGuiApplication>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QQmlEngine>
|
||||
#include <QQmlEngine>
|
||||
#include <QSqlDatabase>
|
||||
#include <QSqlError>
|
||||
#include <QDebug>
|
||||
|
|
Reference in a new issue