Allow to easily create an "about" dialog window.
1#include "toolboxqt/widgets/dialogabout.h"
3void MenuBar::showHelpAbout()
7 dialogAbout->setAttribute(Qt::WA_DeleteOnClose);
12 "My great application which do many things:\n"
13 "- The first great things\n"
14 "- The second great things\n",
16 tbq::RichLink(QUrl(
"https://github.com/myuser/myproject/issues"))
20 const QString teaseVer = QString::fromStdString(tease::Semver::getLibraryVersion().toString(
'.', 1));
21 const tbq::DialogAbout::ListDeps listDeps = {
26 tbq::DepInfos(
tbq::RichLink(QUrl(
"https://github.com/legerch/QLogger"),
"QLogger"), QLogger::QLoggerFactory::getLibraryVersion()),
27 tbq::DepInfos(
tbq::RichLink(QUrl(
"https://github.com/legerch/qtavplayer"),
"QtAvPlayer"), QVersionNumber::fromString(QTAVPLAYER_VERSION_STR)),
29 tbq::DepInfos(
tbq::RichLink(QUrl(
"https://github.com/legerch/ToolBoxQt"),
"Toolbox Qt"), QVersionNumber::fromString(TOOLBOXQT_VERSION_STR)),
30 tbq::DepInfos(
tbq::RichLink(QUrl(
"https://github.com/legerch/TransferEase"),
"TransferEase"), QVersionNumber::fromString(teaseVer)),
36 const tbq::DialogAbout::ListResGroups listRes = {
40 {.source =
tbq::RichLink(QUrl(
"https://www.flaticon.com/free-icon/local-area_2082759?term=computer&related_id=2082759"),
"Main logo"), .author =
"Eucalyp", .license =
"Flaticon License"},
41 {.source =
tbq::RichLink(QUrl(
"https://www.bankoficons/greaticon1"),
"Action1 icon"), .author =
"David Awesome", .license =
"Creative Commons"},
42 {.source =
tbq::RichLink(QUrl(
"https://www.bankoficons/greaticon2"),
"Sub menu icon"), .author =
"Paul Allesome", .license =
"Creative Commons"},
48 {.source =
tbq::RichLink(QUrl(
"https://www.bankoffonts/greatfont1"),
"App font"), .author =
"Dave Calligraph", .license =
"Creative Commons"},
49 {.source =
tbq::RichLink(QUrl(
"https://www.bankoffonts/greatfont2"),
"Emoji font"), .author =
"Sascha Isaac", .license =
"GPL"},
Allow to easily create an "about" dialog window.
Definition dialogabout.h:19
void addSectionRessources(const ListResGroups &listGroups)
Add section used to list all used ressources (images, fonts, audios, etc...).
Definition dialogabout.cpp:220
void addSectionDeps(const ListDeps &listDeps, const QString &invalidSemver="/")
Add section used to list all dependencies.
Definition dialogabout.cpp:174
void addSectionAbout(const QString &aboutApp, const RichLink &linkHome=RichLink(), const RichLink &linkBug=RichLink())
Add an "about" section.
Definition dialogabout.cpp:111
void addSectionLicense(const QUrl &sourceUrl, QTextDocument::ResourceType type=QTextDocument::MarkdownResource)
Add a license section.
Definition dialogabout.cpp:273
void addSectionChangelog(const QUrl &sourceUrl, QTextDocument::ResourceType type=QTextDocument::MarkdownResource)
Add a changelog section.
Definition dialogabout.cpp:257
Display a link with a custom text.
Definition richlink.h:12