mirror of
https://github.com/AntiMicroX/antimicrox.git
synced 2025-12-23 15:18:18 -05:00
Rename and change type of changelog field
This commit is contained in:
@@ -94,11 +94,10 @@ void AboutDialog::fillInfoTextBrowser()
|
||||
QString changelogText = changelogStream.readAll();
|
||||
temp.close();
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
ui->changelogTextEdit->setMarkdown(changelogText);
|
||||
ui->changelogTextEdit->setTextInteractionFlags(ui->changelogTextEdit->textInteractionFlags() |
|
||||
Qt::LinksAccessibleByMouse);
|
||||
ui->changelogText->setMarkdown(changelogText);
|
||||
ui->changelogText->setTextInteractionFlags(ui->changelogText->textInteractionFlags() | Qt::LinksAccessibleByMouse);
|
||||
#else
|
||||
ui->changelogTextEdit->setPlainText(changelogText);
|
||||
ui->changelogText->setPlainText(changelogText);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -342,7 +342,7 @@ p, li { white-space: pre-wrap; }
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||
<item>
|
||||
<widget class="QTextEdit" name="changelogTextEdit">
|
||||
<widget class="QTextBrowser" name="changelogText">
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
||||
@@ -58,8 +58,8 @@ void TestAboutDialog::infoTextBrowserEmpty()
|
||||
|
||||
void TestAboutDialog::changelogPlainEmpty()
|
||||
{
|
||||
QPlainTextEdit* changelogTextEdit = aboutDialog.findChild<QPlainTextEdit*>("changelogTextEdit");
|
||||
QVERIFY2(!changelogTextEdit->toPlainText().isEmpty(), "changelogTextEdit is empty");
|
||||
QPlainTextEdit* changelogText = aboutDialog.findChild<QPlainTextEdit*>("changelogText");
|
||||
QVERIFY2(!changelogText->toPlainText().isEmpty(), "changelogText is empty");
|
||||
}
|
||||
|
||||
void TestAboutDialog::textBrowserDevsEmpty()
|
||||
|
||||
Reference in New Issue
Block a user