Mercurial > hg > forks > UniversalIndentGUI
changeset 563:65e6146fe411
Opening external links is now easier to handle than it was with previous Qt versions. So kicked a helper function away.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@804 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Wed, 08 Oct 2008 18:20:48 +0000 |
parents | 072bd7c21c2f |
children | a8d2607b2e32 |
files | src/aboutdialog.cpp src/aboutdialog.h |
diffstat | 2 files changed, 2 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aboutdialog.cpp Wed Oct 08 17:54:28 2008 +0000 +++ b/src/aboutdialog.cpp Wed Oct 08 18:20:48 2008 +0000 @@ -36,9 +36,8 @@ setupUi(this); creditsTextBrowser->setStyleSheet("QTextBrowser#creditsTextBrowser{background-color:white}"); - //licenseLabel->setText( "The System Locale is : " + QLocale::system().name() ); - connect( authorTextBrowser, SIGNAL(anchorClicked (const QUrl)), this, SLOT(restoreTextBrowserContentAndOpenLink(const QUrl)) ); - textBrowserSavedContent = authorTextBrowser->toHtml(); + authorTextBrowser->setOpenExternalLinks( true ); + creditsTextBrowser->setOpenExternalLinks( true ); this->version = version; this->revision = revision; @@ -83,15 +82,6 @@ /*! - \brief This slot is being called, when the link in the about dialog is being clicked. - */ -void AboutDialog::restoreTextBrowserContentAndOpenLink(const QUrl &link) { - authorTextBrowser->setHtml(textBrowserSavedContent); - QDesktopServices::openUrl(link); -} - - -/*! \brief Catches language change events and retranslates all needed widgets. */ void AboutDialog::changeEvent(QEvent *event) {