Qt: Make about dialog scmversion label selectable by mouse

This commit is contained in:
Albert Liu 2021-02-27 15:07:05 -08:00
parent 1c1abee61a
commit 1f876afbed

View file

@ -11,6 +11,7 @@ AboutDialog::AboutDialog(QWidget* parent /* = nullptr */) : QDialog(parent)
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setFixedSize(geometry().width(), geometry().height());
m_ui.scmversion->setTextInteractionFlags(Qt::TextSelectableByMouse);
m_ui.scmversion->setText(tr("%1 (%2)").arg(QString(g_scm_tag_str)).arg(QString(g_scm_branch_str)));
m_ui.description->setTextInteractionFlags(Qt::TextBrowserInteraction);