Duckstation/src/duckstation-qt/aboutdialog.cpp
2020-06-11 09:36:14 -07:00

21 lines
630 B
C++

#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)));
m_ui.description->setTextInteractionFlags(Qt::TextBrowserInteraction);
m_ui.description->setOpenExternalLinks(true);
}
AboutDialog::~AboutDialog() = default;