diff --git a/src/Gui/Splashscreen.cpp b/src/Gui/Splashscreen.cpp index db8d03b49c..d3e04ba27b 100644 --- a/src/Gui/Splashscreen.cpp +++ b/src/Gui/Splashscreen.cpp @@ -268,6 +268,7 @@ AboutDialog::AboutDialog(bool showLic, QWidget* parent) ui->tabWidget->setCurrentIndex(0); // always start on the About tab setupLabels(); showLicenseInformation(); + showCollectionInformation(); } /** @@ -695,6 +696,23 @@ void AboutDialog::showLicenseInformation() connect(textField, SIGNAL(anchorClicked(QUrl)), this, SLOT(linkActivated(QUrl))); } +void AboutDialog::showCollectionInformation() +{ + QString doc = QString::fromUtf8(App::Application::getHelpDir().c_str()); + QString path = doc + QLatin1String("Collection.html"); + if (!QFile::exists(path)) + return; + + QWidget *tab_collection = new QWidget(); + tab_collection->setObjectName(QString::fromLatin1("tab_collection")); + ui->tabWidget->addTab(tab_collection, tr("Collection")); + QVBoxLayout* hlayout = new QVBoxLayout(tab_collection); + QTextBrowser* textField = new QTextBrowser(tab_collection); + textField->setOpenExternalLinks(true); + hlayout->addWidget(textField); + textField->setSource(path); +} + void AboutDialog::linkActivated(const QUrl& link) { //#if defined(Q_OS_WIN) && QT_VERSION < 0x050602 diff --git a/src/Gui/Splashscreen.h b/src/Gui/Splashscreen.h index 2f74f43f5a..6b2142feca 100644 --- a/src/Gui/Splashscreen.h +++ b/src/Gui/Splashscreen.h @@ -102,6 +102,7 @@ public: protected: void setupLabels(); void showLicenseInformation(); + void showCollectionInformation(); protected Q_SLOTS: virtual void on_copyButton_clicked();