diff --git a/ScStwApp.pro b/ScStwApp.pro index ad328a6..19040de 100644 --- a/ScStwApp.pro +++ b/ScStwApp.pro @@ -18,7 +18,7 @@ DEFINES += QT_DEPRECATED_WARNINGS # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 -TARGET = speedclimbing_stw +TARGET = ScStwApp SOURCES += \ sources/main.cpp \ @@ -66,3 +66,15 @@ DISTFILES += \ android { ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android-sources } + +ios { + QMAKE_ASSET_CATALOGS += resources/shared/graphics/Assets.xcassets + xcode_product_bundle_identifier_setting.value = "de.itsblue.ScStwApp" + + OBJECTIVE_SOURCES += \ + sources/sleepprevent.mm + OBJECTIVE_HEADERS += \ + headers/sleepprevent.h + + QTPLUGIN -= qtaudio_coreaudio +} diff --git a/headers/sleepprevent.h b/headers/sleepprevent.h new file mode 100644 index 0000000..1934484 --- /dev/null +++ b/headers/sleepprevent.h @@ -0,0 +1,5 @@ +class SleepPrevent +{ +public: + void setTimerDisabled(); +}; diff --git a/resources/qml/SettingsDialog/SettingsBaseStationConnectionsPage.qml b/resources/qml/SettingsDialog/SettingsBaseStationConnectionsPage.qml index 919e9a8..c01e64b 100644 --- a/resources/qml/SettingsDialog/SettingsBaseStationConnectionsPage.qml +++ b/resources/qml/SettingsDialog/SettingsBaseStationConnectionsPage.qml @@ -4,7 +4,6 @@ import QtQuick.Window 2.2 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 import QtGraphicalEffects 1.0 -import QtQuick.Controls.Styles 1.4 import "../components" ListView { diff --git a/resources/qml/SettingsDialog/SettingsBaseStationPage.qml b/resources/qml/SettingsDialog/SettingsBaseStationPage.qml index f29d474..563b3ca 100644 --- a/resources/qml/SettingsDialog/SettingsBaseStationPage.qml +++ b/resources/qml/SettingsDialog/SettingsBaseStationPage.qml @@ -4,7 +4,6 @@ import QtQuick.Window 2.2 import QtQuick.Controls 2.12 import QtQuick.Layouts 1.3 import QtGraphicalEffects 1.0 -import QtQuick.Controls.Styles 1.4 import QtQuick.Templates 2.12 as T import "../components" diff --git a/resources/qml/SettingsDialog/SettingsDialog.qml b/resources/qml/SettingsDialog/SettingsDialog.qml index fdd4419..ec8e9a5 100644 --- a/resources/qml/SettingsDialog/SettingsDialog.qml +++ b/resources/qml/SettingsDialog/SettingsDialog.qml @@ -21,7 +21,6 @@ import QtQuick.Window 2.2 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 import QtGraphicalEffects 1.0 -import QtQuick.Controls.Styles 1.4 import "../components" Popup { diff --git a/resources/qml/SettingsDialog/SettingsStack.qml b/resources/qml/SettingsDialog/SettingsStack.qml index 0941b94..ca56006 100644 --- a/resources/qml/SettingsDialog/SettingsStack.qml +++ b/resources/qml/SettingsDialog/SettingsStack.qml @@ -4,7 +4,6 @@ import QtQuick.Window 2.2 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 import QtGraphicalEffects 1.0 -import QtQuick.Controls.Styles 1.4 import "../components" diff --git a/resources/qml/SettingsDialog/SettingsStartSequencePage.qml b/resources/qml/SettingsDialog/SettingsStartSequencePage.qml index 8322d7e..86b8146 100644 --- a/resources/qml/SettingsDialog/SettingsStartSequencePage.qml +++ b/resources/qml/SettingsDialog/SettingsStartSequencePage.qml @@ -4,7 +4,6 @@ import QtQuick.Window 2.2 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 import QtGraphicalEffects 1.0 -import QtQuick.Controls.Styles 1.4 import "../components" Column { diff --git a/resources/qml/SettingsDialog/StartPage.qml b/resources/qml/SettingsDialog/StartPage.qml index 8208e72..a9d20cf 100644 --- a/resources/qml/SettingsDialog/StartPage.qml +++ b/resources/qml/SettingsDialog/StartPage.qml @@ -4,7 +4,6 @@ import QtQuick.Window 2.2 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.3 import QtGraphicalEffects 1.0 -import QtQuick.Controls.Styles 1.4 import "../components" Column { diff --git a/resources/qml/components/FancyBusyIndicator.qml b/resources/qml/components/FancyBusyIndicator.qml index ba6631f..935b993 100644 --- a/resources/qml/components/FancyBusyIndicator.qml +++ b/resources/qml/components/FancyBusyIndicator.qml @@ -1,6 +1,5 @@ import QtQuick 2.3 import QtQuick.Controls 2.4 -import QtQuick.Controls.Styles 1.2 BusyIndicator { id: control diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/100.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/100.png new file mode 100644 index 0000000..c571224 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/100.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/1024.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/1024.png new file mode 100644 index 0000000..246321f Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/1024.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/114.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/114.png new file mode 100644 index 0000000..86618da Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/114.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/120.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/120.png new file mode 100644 index 0000000..c6bb907 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/120.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/128.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/128.png new file mode 100644 index 0000000..6e80a04 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/128.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/144.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/144.png new file mode 100644 index 0000000..80337a5 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/144.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/152.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/152.png new file mode 100644 index 0000000..8eda1e3 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/152.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/16.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/16.png new file mode 100644 index 0000000..96328c3 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/16.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/167.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/167.png new file mode 100644 index 0000000..3c87bf7 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/167.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/172.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/172.png new file mode 100644 index 0000000..5347041 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/172.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/180.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/180.png new file mode 100644 index 0000000..0deb7d6 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/180.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/196.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/196.png new file mode 100644 index 0000000..d841249 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/196.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/20.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/20.png new file mode 100644 index 0000000..8ed64ab Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/20.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/216.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/216.png new file mode 100644 index 0000000..7b69f54 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/216.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/256.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/256.png new file mode 100644 index 0000000..b4f2c01 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/256.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/29.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/29.png new file mode 100644 index 0000000..3b3506d Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/29.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/32.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/32.png new file mode 100644 index 0000000..5d7b7aa Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/32.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/40.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/40.png new file mode 100644 index 0000000..0be178f Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/40.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/48.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/48.png new file mode 100644 index 0000000..0c5c0a8 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/48.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/50.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/50.png new file mode 100644 index 0000000..0f4dfb2 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/50.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/512.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/512.png new file mode 100644 index 0000000..9a1b4f2 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/512.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/55.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/55.png new file mode 100644 index 0000000..5938904 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/55.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/57.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/57.png new file mode 100644 index 0000000..e2dff24 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/57.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/58.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/58.png new file mode 100644 index 0000000..b6315e1 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/58.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/60.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/60.png new file mode 100644 index 0000000..925e1ba Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/60.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/64.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/64.png new file mode 100644 index 0000000..df6a9a4 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/64.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/72.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/72.png new file mode 100644 index 0000000..bcd41b9 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/72.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/76.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/76.png new file mode 100644 index 0000000..1b7efbd Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/76.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/80.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/80.png new file mode 100644 index 0000000..ad488c9 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/80.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/87.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/87.png new file mode 100644 index 0000000..ad9897a Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/87.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/88.png b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/88.png new file mode 100644 index 0000000..6921129 Binary files /dev/null and b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/88.png differ diff --git a/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/Contents.json b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..e138c0b --- /dev/null +++ b/resources/shared/graphics/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1 @@ +{"images":[{"size":"60x60","expected-size":"180","filename":"180.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"40x40","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"60x60","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"57x57","expected-size":"57","filename":"57.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"57x57","expected-size":"114","filename":"114.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"60","filename":"60.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"1024x1024","filename":"1024.png","expected-size":"1024","idiom":"ios-marketing","folder":"Assets.xcassets/AppIcon.appiconset/","scale":"1x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"72x72","expected-size":"72","filename":"72.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"76x76","expected-size":"152","filename":"152.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"50x50","expected-size":"100","filename":"100.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"76x76","expected-size":"76","filename":"76.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"50x50","expected-size":"50","filename":"50.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"72x72","expected-size":"144","filename":"144.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"40x40","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"83.5x83.5","expected-size":"167","filename":"167.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"20x20","expected-size":"20","filename":"20.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"idiom":"watch","filename":"172.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"38mm","scale":"2x","size":"86x86","expected-size":"172","role":"quickLook"},{"idiom":"watch","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"38mm","scale":"2x","size":"40x40","expected-size":"80","role":"appLauncher"},{"idiom":"watch","filename":"88.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"40mm","scale":"2x","size":"44x44","expected-size":"88","role":"appLauncher"},{"idiom":"watch","filename":"100.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"44mm","scale":"2x","size":"50x50","expected-size":"100","role":"appLauncher"},{"idiom":"watch","filename":"196.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"42mm","scale":"2x","size":"98x98","expected-size":"196","role":"quickLook"},{"idiom":"watch","filename":"216.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"44mm","scale":"2x","size":"108x108","expected-size":"216","role":"quickLook"},{"idiom":"watch","filename":"48.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"38mm","scale":"2x","size":"24x24","expected-size":"48","role":"notificationCenter"},{"idiom":"watch","filename":"55.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"42mm","scale":"2x","size":"27.5x27.5","expected-size":"55","role":"notificationCenter"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"watch","role":"companionSettings","scale":"3x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"watch","role":"companionSettings","scale":"2x"},{"size":"1024x1024","expected-size":"1024","filename":"1024.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"watch-marketing","scale":"1x"},{"size":"128x128","expected-size":"128","filename":"128.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"256x256","expected-size":"256","filename":"256.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"128x128","expected-size":"256","filename":"256.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"256x256","expected-size":"512","filename":"512.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"32x32","expected-size":"32","filename":"32.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"512x512","expected-size":"512","filename":"512.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"16x16","expected-size":"16","filename":"16.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"16x16","expected-size":"32","filename":"32.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"32x32","expected-size":"64","filename":"64.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"512x512","expected-size":"1024","filename":"1024.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"}]} \ No newline at end of file diff --git a/sources/main.cpp b/sources/main.cpp index 9244717..a37f511 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -57,6 +57,10 @@ #include "headers/apptheme.h" #include +#if defined(Q_OS_IOS) +#include "headers/sleepprevent.h" +#endif + static void connectToDatabase() { QSqlDatabase database = QSqlDatabase::database(); @@ -127,6 +131,11 @@ int main(int argc, char *argv[]) // stup app settings context->setContextProperty("_cppAppSettings", pAppSettings); +#if defined(Q_OS_IOS) +SleepPrevent sp; +sp.setTimerDisabled(); +#endif + if (engine.rootObjects().isEmpty()) return -1; diff --git a/sources/sleepprevent.mm b/sources/sleepprevent.mm new file mode 100644 index 0000000..b8d499f --- /dev/null +++ b/sources/sleepprevent.mm @@ -0,0 +1,7 @@ +#import +#import +#include "headers/sleepprevent.h" + +void SleepPrevent::setTimerDisabled() { + [[UIApplication sharedApplication] setIdleTimerDisabled: YES]; +}