Move help URL also to CMAKE
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 31 Jan 2019 10:03:51 +0000 (11:03 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 31 Jan 2019 10:28:46 +0000 (11:28 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
NEXTCLOUD.cmake
config.h.in
src/libsync/theme.cpp

index 011c41d10e2edc104635bfec6ea213677801a040..80e48b533916fb4f749d84efe5847503d6b05785 100644 (file)
@@ -4,6 +4,7 @@ set( APPLICATION_EXECUTABLE "nextcloud" )
 set( APPLICATION_DOMAIN     "nextcloud.com" )
 set( APPLICATION_VENDOR     "Nextcloud GmbH" )
 set( APPLICATION_UPDATE_URL "https://updates.nextcloud.org/client/" CACHE string "URL for updater" )
+set( APPLICATION_HELP_URL   "" CACHE string "URL for the help menu" )
 set( APPLICATION_ICON_NAME  "Nextcloud" )
 
 set( LINUX_PACKAGE_SHORTNAME "nextcloud" )
@@ -28,3 +29,4 @@ option( WITH_PROVIDERS "Build with providers list" ON )
 set( APPLICATION_WIZARD_HEADER_BACKGROUND_COLOR "#0082c9" CACHE string "Hex color of the wizard header background")
 set( APPLICATION_WIZARD_HEADER_TITLE_COLOR "#ffffff" CACHE string "Hex color of the text in the wizard header")
 option( APPLICATION_WIZARD_USE_CUSTOM_LOGO "Use the logo from ':/client/theme/colored/wizard_logo.png' else the default application icon is used" ON )
+
index 1223b0cfc2438ad5a4b113f7cb22c1e9bc6370c2..55c5f619a3486b0c2ef0e41d9f8f7c40551e86c6 100644 (file)
@@ -18,6 +18,7 @@
 #cmakedefine APPLICATION_SHORTNAME "@APPLICATION_SHORTNAME@"
 #cmakedefine APPLICATION_EXECUTABLE "@APPLICATION_EXECUTABLE@"
 #cmakedefine APPLICATION_UPDATE_URL "@APPLICATION_UPDATE_URL@"
+#cmakedefine APPLICATION_HELP_URL "@APPLICATION_HELP_URL@"
 #cmakedefine APPLICATION_ICON_NAME "@APPLICATION_ICON_NAME@"
 #cmakedefine APPLICATION_WIZARD_HEADER_BACKGROUND_COLOR "@APPLICATION_WIZARD_HEADER_BACKGROUND_COLOR@"
 #cmakedefine APPLICATION_WIZARD_HEADER_TITLE_COLOR "@APPLICATION_WIZARD_HEADER_TITLE_COLOR@"
index c049f7d7f6b319c0ef794bd0b28c32391caada84..4f306c38fa9e434ec948b00fc7f179609471cf19 100644 (file)
@@ -225,7 +225,11 @@ QString Theme::defaultServerFolder() const
 
 QString Theme::helpUrl() const
 {
+#ifdef APPLICATION_HELP_URL
+    return QString::fromLatin1(APPLICATION_HELP_URL);
+#else
     return QString::fromLatin1("https://docs.nextcloud.com/desktop/%1.%2/").arg(MIRALL_VERSION_MAJOR).arg(MIRALL_VERSION_MINOR);
+#endif
 }
 
 QString Theme::conflictHelpUrl() const