tutorial url as app paremeter

preferencesAboutTextFull
Claudio Valerio 10 years ago
parent a2eb4c06c0
commit 5cd0fc1d4d
  1. 2
      src/core/UBSettings.cpp
  2. 2
      src/core/UBSettings.h
  3. 2
      src/web/UBWebController.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

@ -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()

Loading…
Cancel
Save