From 5cd0fc1d4dfcab7ce10db651eb7aba4140d1cd6a Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Tue, 7 Oct 2014 12:41:14 +0200 Subject: [PATCH] tutorial url as app paremeter --- src/core/UBSettings.cpp | 2 ++ src/core/UBSettings.h | 2 ++ src/web/UBWebController.cpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/UBSettings.cpp b/src/core/UBSettings.cpp index 73ac1370..3cd7b57e 100644 --- a/src/core/UBSettings.cpp +++ b/src/core/UBSettings.cpp @@ -210,6 +210,8 @@ void UBSettings::init() softwareHomeUrl = productWebUrl->get().toString(); + tutorialUrl = new UBSetting(this,"App","TutorialUrl","http://www.youtube.com/channel/UCM_moFB68dqpSLPZ-jV40Ow"); + documentSizes.insert(DocumentSizeRatio::Ratio4_3, QSize(1280, 960)); // 1.33 documentSizes.insert(DocumentSizeRatio::Ratio16_9, QSize((960 / 9 * 16), 960)); // 1.77 diff --git a/src/core/UBSettings.h b/src/core/UBSettings.h index b37c7af1..1c739b8a 100644 --- a/src/core/UBSettings.h +++ b/src/core/UBSettings.h @@ -227,6 +227,8 @@ class UBSettings : public QObject QString softwareHomeUrl; + UBSetting* tutorialUrl; + UBSetting* appToolBarPositionedAtTop; UBSetting* appToolBarDisplayText; UBSetting* appEnableAutomaticSoftwareUpdates; diff --git a/src/web/UBWebController.cpp b/src/web/UBWebController.cpp index 55a2ce6b..0c21d499 100644 --- a/src/web/UBWebController.cpp +++ b/src/web/UBWebController.cpp @@ -90,7 +90,7 @@ UBWebController::~UBWebController() void UBWebController::onOpenTutorial() { - loadUrl(QUrl("http://tutorial.openboard.org")); + loadUrl(QUrl(UBSettings::settings()->tutorialUrl->get().toString())); } void UBWebController::initialiazemOEmbedProviders()