mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
AboutDialog: Replace QTextBrowser with QLabel
This commit is contained in:
parent
a2731ef393
commit
4bd8de6a50
@ -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>© %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());
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -287,7 +287,7 @@ AboutDialog #label
|
||||
background: palette(window);
|
||||
}
|
||||
|
||||
AboutDialog #textBrowser
|
||||
AboutDialog #textLabel
|
||||
{
|
||||
background: palette(window);
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ AboutDialog #label
|
||||
background: palette(window);
|
||||
}
|
||||
|
||||
AboutDialog #textBrowser
|
||||
AboutDialog #textLabel
|
||||
{
|
||||
background: palette(window);
|
||||
}
|
||||
|
@ -291,7 +291,7 @@ AboutDialog #label
|
||||
background: palette(window);
|
||||
}
|
||||
|
||||
AboutDialog #textBrowser
|
||||
AboutDialog #textLabel
|
||||
{
|
||||
background: palette(window);
|
||||
}
|
||||
|
@ -378,7 +378,7 @@ AboutDialog #label
|
||||
background: palette(window);
|
||||
}
|
||||
|
||||
AboutDialog #textBrowser
|
||||
AboutDialog #textLabel
|
||||
{
|
||||
background: palette(window);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user