mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-18 03:48:09 +00:00
Use CMAKE configuration for specify URL location for about view
This commit is contained in:
parent
1d3f7d2148
commit
cfe9ef697d
3 changed files with 5 additions and 1 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include <QMenu>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QQmlFileSelector>
|
||||
#include <QQmlContext>
|
||||
#include <QQuickWindow>
|
||||
#include <QSystemTrayIcon>
|
||||
#include <QTimer>
|
||||
|
|
@ -317,6 +318,8 @@ void App::initContentApp () {
|
|||
mEngine->addImageProvider(ImageProvider::ProviderId, new ImageProvider());
|
||||
mEngine->addImageProvider(ThumbnailProvider::ProviderId, new ThumbnailProvider());
|
||||
|
||||
mEngine->rootContext()->setContextProperty("applicationUrl", APPLICATION_URL);
|
||||
|
||||
registerTypes();
|
||||
registerSharedTypes();
|
||||
registerToolTypes();
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
#cmakedefine APPLICATION_ID "${APPLICATION_ID}"
|
||||
#cmakedefine APPLICATION_NAME "${APPLICATION_NAME}"
|
||||
#cmakedefine APPLICATION_VENDOR "${APPLICATION_VENDOR}"
|
||||
#cmakedefine APPLICATION_URL "${APPLICATION_URL}"
|
||||
#cmakedefine ENABLE_UPDATE_CHECK 1
|
||||
#cmakedefine EXECUTABLE_NAME "${EXECUTABLE_NAME}"
|
||||
#cmakedefine MSPLUGINS_DIR "${MSPLUGINS_DIR}"
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ DialogPlus {
|
|||
elide: Text.ElideRight
|
||||
font.pointSize: AboutStyle.copyrightBlock.url.pointSize
|
||||
linkColor: AboutStyle.copyrightBlock.url.color
|
||||
text: '<a href="https://www.linphone.org">https://www.linphone.org</a>'
|
||||
text: '<a href="'+applicationUrl+'">'+applicationUrl+'</a>'
|
||||
|
||||
width: parent.width
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue