Update ccnotepad.cpp 使用可点击的连接

This commit is contained in:
woclass 2023-02-08 11:29:06 +08:00
parent 27926687bc
commit 75da446564
No known key found for this signature in database
GPG Key ID: 9945259EC0248B62
1 changed files with 9 additions and 4 deletions

View File

@ -7317,14 +7317,19 @@ void CCNotePad::slot_hexGotoFile(qint64 addr)
void CCNotePad::slot_about()
{
QMessageBox msgBox(this);
QString msg = tr(R"(
<a href="https://github.com/cxasm/notepad--">Github repo: cxasm/notepad--</a>
<br/>
<a href="https://gitee.com/cxasm/notepad--">China Gitee: cxasm/notepad--</a>
)");
#if defined (Q_OS_MAC)
msgBox.setText(tr("bugfix: https://github.com/cxasm/notepad-- \nchina: https://gitee.com/cxasm/notepad--"));
msgBox.setText(msg);
msgBox.setDetailedText(QString("Notepad-- %1").arg(VersionStr));
#else
msgBox.setWindowTitle(QString("Notepad-- %1").arg(VersionStr));
msgBox.setText(tr("bugfix: https://github.com/cxasm/notepad-- \nchina: https://gitee.com/cxasm/notepad--"));
msgBox.setText(msg);
#endif
msgBox.setTextInteractionFlags(Qt::TextSelectableByMouse);
msgBox.exec();
}