2022-10-18 09:35:04 +00:00
|
|
|
#include <QOpenGLFunctions>
|
2018-04-10 07:59:20 +00:00
|
|
|
#include <QTextEdit>
|
|
|
|
#include <QVBoxLayout>
|
2021-11-18 14:58:01 +00:00
|
|
|
|
|
|
|
#include "about_widget.h"
|
2022-09-20 12:48:22 +00:00
|
|
|
#include "model_widget.h"
|
2022-10-18 09:35:04 +00:00
|
|
|
#include "version.h"
|
2018-04-10 07:59:20 +00:00
|
|
|
|
|
|
|
AboutWidget::AboutWidget()
|
|
|
|
{
|
2022-10-18 09:35:04 +00:00
|
|
|
QTextEdit* versionInfoLabel = new QTextEdit;
|
2022-09-20 12:48:22 +00:00
|
|
|
versionInfoLabel->setText(QString("%1 %2 (version: %3 build: %4 %5)\nopengl: %6 shader: %7 core: %8").arg(APP_NAME).arg(APP_HUMAN_VER).arg(APP_VER).arg(__DATE__).arg(__TIME__).arg(ModelWidget::m_openGLVersion).arg(ModelWidget::m_openGLShadingLanguageVersion).arg(ModelWidget::m_openGLIsCoreProfile ? "true" : "false"));
|
2018-04-10 07:59:20 +00:00
|
|
|
versionInfoLabel->setReadOnly(true);
|
2022-10-18 09:35:04 +00:00
|
|
|
|
|
|
|
QVBoxLayout* mainLayout = new QVBoxLayout;
|
2018-04-10 07:59:20 +00:00
|
|
|
mainLayout->addWidget(versionInfoLabel);
|
2022-10-18 09:35:04 +00:00
|
|
|
|
2018-04-10 07:59:20 +00:00
|
|
|
setLayout(mainLayout);
|
2021-11-18 14:58:01 +00:00
|
|
|
setFixedSize(QSize(350, 100));
|
2022-10-18 09:35:04 +00:00
|
|
|
|
2021-11-18 14:58:01 +00:00
|
|
|
setWindowTitle(applicationTitle(tr("About")));
|
2018-04-10 07:59:20 +00:00
|
|
|
}
|