Changelog links now open in external browser (ported from master)
This commit is contained in:
@@ -85,6 +85,7 @@ contributorsDialog::contributorsDialog(QWidget *parent, int contest, QString rnu
|
|||||||
QFile file(":/releasenotes.txt");
|
QFile file(":/releasenotes.txt");
|
||||||
if(file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
|
if(file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
|
||||||
ui->textEditor->setHtml(file.readAll());
|
ui->textEditor->setHtml(file.readAll());
|
||||||
|
ui->textEditor->setOpenExternalLinks(true);
|
||||||
}
|
}
|
||||||
ui->textEditor->scroll(0,0);
|
ui->textEditor->scroll(0,0);
|
||||||
setWindowTitle(tr("Companion Release Notes"));
|
setWindowTitle(tr("Companion Release Notes"));
|
||||||
@@ -124,6 +125,7 @@ contributorsDialog::~contributorsDialog()
|
|||||||
void contributorsDialog::replyFinished(QNetworkReply * reply)
|
void contributorsDialog::replyFinished(QNetworkReply * reply)
|
||||||
{
|
{
|
||||||
ui->textEditor->setHtml(reply->readAll());
|
ui->textEditor->setHtml(reply->readAll());
|
||||||
|
ui->textEditor->setOpenExternalLinks(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void contributorsDialog::forceClose()
|
void contributorsDialog::forceClose()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QTextEdit" name="textEditor">
|
<widget class="QTextBrowser" name="textEditor">
|
||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user