|
|
@@ -102,6 +102,7 @@ void FirstLaunchView::on_comboBoxLanguage_currentIndexChanged(int index)
|
|
|
|
|
|
void FirstLaunchView::enterSetup()
|
|
|
{
|
|
|
+ setupPlatformSettings();
|
|
|
Languages::fillLanguages(ui->listWidgetLanguage, false);
|
|
|
}
|
|
|
|
|
|
@@ -158,6 +159,19 @@ void FirstLaunchView::exitSetup()
|
|
|
mainWindow->exitSetup();
|
|
|
}
|
|
|
|
|
|
+// Initial platform-dependend settings
|
|
|
+void FirstLaunchView::setupPlatformSettings()
|
|
|
+{
|
|
|
+#if defined(VCMI_MOBILE)
|
|
|
+ bool touchscreenMode = true;
|
|
|
+#else
|
|
|
+ bool touchscreenMode = false
|
|
|
+#endif
|
|
|
+
|
|
|
+ Settings node = settings.write["battle"]["touchscreenMode"];
|
|
|
+ node->Bool() = touchscreenMode;
|
|
|
+}
|
|
|
+
|
|
|
// Tab Language
|
|
|
void FirstLaunchView::languageSelected(const QString & selectedLanguage)
|
|
|
{
|