1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

AboutDialog: Replace QTextBrowser with QLabel

This commit is contained in:
David Rosca 2018-02-24 10:03:41 +01:00
parent a2731ef393
commit 4bd8de6a50
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
6 changed files with 27 additions and 30 deletions

View File

@ -45,7 +45,7 @@ AboutDialog::~AboutDialog()
void AboutDialog::showAbout()
{
QString aboutHtml;
aboutHtml += "<center><div style='margin:20px;'>";
aboutHtml += "<div style='margin:0px 20px;'>";
aboutHtml += tr("<p><b>Application version %1</b><br/>").arg(
#ifdef FALKON_GIT_REVISION
QString("%1 (%2)").arg(Qz::VERSION, FALKON_GIT_REVISION)
@ -57,6 +57,7 @@ void AboutDialog::showAbout()
aboutHtml += QString("<p>&copy; %1 %2<br/>").arg(Qz::COPYRIGHT, Qz::AUTHOR);
aboutHtml += QString("<a href=%1>%1</a></p>").arg(Qz::WWWADDRESS);
aboutHtml += "<p>" + mApp->userAgentManager()->defaultUserAgent() + "</p>";
aboutHtml += "</div></center>";
ui->textBrowser->setHtml(aboutHtml);
aboutHtml += "</div>";
ui->textLabel->setText(aboutHtml);
setFixedHeight(sizeHint().height());
}

View File

@ -25,29 +25,27 @@
</widget>
</item>
<item>
<widget class="QTextBrowser" name="textBrowser">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
<widget class="QLabel" name="textLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="openLinks">
<bool>true</bool>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="topMargin">
<number>5</number>
</property>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
@ -59,8 +57,6 @@
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections>

View File

@ -287,7 +287,7 @@ AboutDialog #label
background: palette(window);
}
AboutDialog #textBrowser
AboutDialog #textLabel
{
background: palette(window);
}

View File

@ -216,7 +216,7 @@ AboutDialog #label
background: palette(window);
}
AboutDialog #textBrowser
AboutDialog #textLabel
{
background: palette(window);
}

View File

@ -291,7 +291,7 @@ AboutDialog #label
background: palette(window);
}
AboutDialog #textBrowser
AboutDialog #textLabel
{
background: palette(window);
}

View File

@ -378,7 +378,7 @@ AboutDialog #label
background: palette(window);
}
AboutDialog #textBrowser
AboutDialog #textLabel
{
background: palette(window);
}