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 @@
#define VIDEOSTITCH_YOUTUBE_VAHANA_URL "https://www.youtube.com/playlist?list=PLE5eSxUoYnqgv4S8ayQ5_YsPP8x_MCvvM"
#define VIDEOSTITCH_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
#define ORAH_COLOR "FF9E00";
......
......@@ -6,10 +6,13 @@
#include <QLabel>
#include <QPushButton>
#include <QDesktopServices>
#include "aboutwindow.hpp"
#include "version.hpp"
#include "common.hpp"
#include "libvideostitch-base/linkhelpers.hpp"
AboutWidget::AboutWidget(QString version, QWidget* const parent) : QWidget(parent) {
setupUi(this);
buttonWebSite->setProperty("vs-button-medium", true);
......@@ -18,6 +21,11 @@ AboutWidget::AboutWidget(QString version, QWidget* const parent) : QWidget(paren
.arg(QCoreApplication::applicationName())
.arg(QCoreApplication::organizationName())
.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);
labelAppVersion->setText(version);
QIcon webIcon(":/live/icons/assets/icon/live/web.png");
......
......@@ -165,6 +165,25 @@
</property>
</widget>
</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>
<spacer name="verticalSpacer_2">
<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