Commit 5cd0fc1d authored by Claudio Valerio's avatar Claudio Valerio

tutorial url as app paremeter

parent a2eb4c06
......@@ -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
......
......@@ -227,6 +227,8 @@ class UBSettings : public QObject
QString softwareHomeUrl;
UBSetting* tutorialUrl;
UBSetting* appToolBarPositionedAtTop;
UBSetting* appToolBarDisplayText;
UBSetting* appEnableAutomaticSoftwareUpdates;
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment