Merge pull request #1704 from ggrtk/qt-scmversion-selectable

Qt: Make about dialog scmversion label selectable by mouse
This commit is contained in:
Connor McLaughlin 2021-02-28 15:05:35 +10:00 committed by GitHub
commit 0a5dc52707
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);