Commit 1ea81054 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Simplify the 3rdparty page a bit

parent 6d7f26b1
......@@ -23,7 +23,7 @@
#include <QTabWidget>
#include <QLabel>
#include <QTextEdit>
#include <QScrollArea>
#include <QTextBrowser>
#include <QString>
#include <QVBoxLayout>
#include <QHBoxLayout>
......@@ -160,12 +160,9 @@ KisAboutApplication::KisAboutApplication(QWidget *parent)
wdgTab->addTab(lblLicense, i18n("License"));
QScrollArea *scrollArea = new QScrollArea();
QLabel *lblThirdParty = new QLabel(scrollArea);
lblThirdParty->setTextFormat(Qt::RichText);
connect(lblThirdParty, SIGNAL(linkActivated(QString)), SLOT(linkClicked(QString)));
QTextBrowser *lblThirdParty = new QTextBrowser();
lblThirdParty->setOpenExternalLinks(true);
QFile thirdPartyFile(":/libraries.txt");
qDebug() << thirdPartyFile.exists();
if (thirdPartyFile.open(QIODevice::ReadOnly)) {
ba = thirdPartyFile.readAll();
......@@ -187,7 +184,7 @@ KisAboutApplication::KisAboutApplication(QWidget *parent)
thirdPartyHtml.append("<ul></p></body></html>");
lblThirdParty->setText(thirdPartyHtml);
}
wdgTab->addTab(scrollArea, i18n("Third-party libraries"));
wdgTab->addTab(lblThirdParty, i18n("Third-party libraries"));
QPushButton *bnClose = new QPushButton(i18n("Close"));
......@@ -203,12 +200,3 @@ KisAboutApplication::KisAboutApplication(QWidget *parent)
vlayout->addLayout(hlayout);
}
void KisAboutApplication::linkClicked(const QString &url)
{
QUrl _url = QUrl::fromUserInput(url);
if (!_url.isLocalFile()) {
QDesktopServices::openUrl(_url);
}
}
......@@ -26,10 +26,6 @@ class KisAboutApplication : public QDialog
public:
explicit KisAboutApplication(QWidget *parent = 0);
private Q_SLOTS:
void linkClicked(const QString &url);
};
#endif // KIS_ABOUT_APPLICATION_H
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