Duckstation/src/duckstation-qt/aboutdialog.cpp

21 lines
630 B
C++
Raw Normal View History

2020-06-11 04:36:48 +00:00
#include "aboutdialog.h"
#include "qtutils.h"
#include "scmversion/scmversion.h"
#include <QtCore/QString>
#include <QtWidgets/QDialog>
AboutDialog::AboutDialog(QWidget* parent /* = nullptr */) : QDialog(parent)
{
m_ui.setupUi(this);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setFixedSize(geometry().width(), geometry().height());
m_ui.scmversion->setText(tr("%1 (%2)").arg(QString(g_scm_tag_str)).arg(QString(g_scm_branch_str)));
2020-06-11 16:36:14 +00:00
m_ui.description->setTextInteractionFlags(Qt::TextBrowserInteraction);
m_ui.description->setOpenExternalLinks(true);
2020-06-11 04:36:48 +00:00
}
AboutDialog::~AboutDialog() = default;