Commit fc19e352 authored by Wieland Morgenstern's avatar Wieland Morgenstern

add 3rd party library note in Studio about window

parent 9189805c
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#define VIDEOSTITCH_YOUTUBE_VAHANA_URL "https://www.youtube.com/playlist?list=PLE5eSxUoYnqgv4S8ayQ5_YsPP8x_MCvvM" #define VIDEOSTITCH_YOUTUBE_VAHANA_URL "https://www.youtube.com/playlist?list=PLE5eSxUoYnqgv4S8ayQ5_YsPP8x_MCvvM"
#define VIDEOSTITCH_URL "https://github.com/stitchEm" #define VIDEOSTITCH_URL "https://github.com/stitchEm"
#define VIDEOSTITCH_SUPPORT_URL "https://github.com/stitchEm" #define VIDEOSTITCH_SUPPORT_URL "https://github.com/stitchEm"
#define VIDEOSTITCH_LIBRARIES_URL "https://github.com/stitchEm/stitchEm/blob/master/doc/LICENSE-3RD-PARTY-LIBRARIES.md"
// Color // Color
#define ORAH_COLOR "FF9E00"; #define ORAH_COLOR "FF9E00";
......
...@@ -6,10 +6,13 @@ ...@@ -6,10 +6,13 @@
#include <QLabel> #include <QLabel>
#include <QPushButton> #include <QPushButton>
#include <QDesktopServices> #include <QDesktopServices>
#include "aboutwindow.hpp" #include "aboutwindow.hpp"
#include "version.hpp" #include "version.hpp"
#include "common.hpp" #include "common.hpp"
#include "libvideostitch-base/linkhelpers.hpp"
AboutWidget::AboutWidget(QString version, QWidget* const parent) : QWidget(parent) { AboutWidget::AboutWidget(QString version, QWidget* const parent) : QWidget(parent) {
setupUi(this); setupUi(this);
buttonWebSite->setProperty("vs-button-medium", true); buttonWebSite->setProperty("vs-button-medium", true);
...@@ -18,6 +21,11 @@ AboutWidget::AboutWidget(QString version, QWidget* const parent) : QWidget(paren ...@@ -18,6 +21,11 @@ AboutWidget::AboutWidget(QString version, QWidget* const parent) : QWidget(paren
.arg(QCoreApplication::applicationName()) .arg(QCoreApplication::applicationName())
.arg(QCoreApplication::organizationName()) .arg(QCoreApplication::organizationName())
.arg(QDate::currentDate().year())); .arg(QDate::currentDate().year()));
labelLibraries->setText(labelLibraries->text()
.arg(QCoreApplication::applicationName())
.arg(formatLink(VIDEOSTITCH_LIBRARIES_URL, "open source libraries.")));
connect(buttonWebSite, &QPushButton::clicked, this, &AboutWidget::onButtonWebSiteClicked); connect(buttonWebSite, &QPushButton::clicked, this, &AboutWidget::onButtonWebSiteClicked);
labelAppVersion->setText(version); labelAppVersion->setText(version);
QIcon webIcon(":/live/icons/assets/icon/live/web.png"); QIcon webIcon(":/live/icons/assets/icon/live/web.png");
......
...@@ -165,6 +165,25 @@ ...@@ -165,6 +165,25 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QLabel" name="labelLibraries">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;%0 uses code from %1&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget>
</item>
<item> <item>
<spacer name="verticalSpacer_2"> <spacer name="verticalSpacer_2">
<property name="orientation"> <property name="orientation">
......
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