Select Git revision
-
Hugo Hörnquist authored
Documentation can now be generated to HTML through sphinx. Some docstrings have been updated to be on the correct format.
Hugo Hörnquist authoredDocumentation can now be generated to HTML through sphinx. Some docstrings have been updated to be on the correct format.
aboutpage.cpp 1.05 KiB
#include "aboutpage.h"
#include "ui_aboutpage.h"
#include <QDateTime>
#include <QDebug>
/* Qt6 Introduces QVersion, which is what we really want.
* Change this when we remove support for Qt5 */
#include <QtGlobal>
#include "version.h"
AboutPage::AboutPage(QWidget *parent) :
QWidget(parent),
ui(new Ui::AboutPage)
{
ui->setupUi(this);
ui->version->setText(version());
auto dt = QDateTime::fromString(__DATE__ " " __TIME__, "MMM d yyyy hh:mm:ss");
ui->buildDate->setText(dt.toString(tr("yyyy-MM-dd hh:mm", "När programmet senast byggdes")));
ui->db_version->setText(QString("%1 (%2)")
.arg(get_db_version_raw())
.arg(get_db_version()));
ui->qt_build_version->setText(QT_VERSION_STR);
ui->qt_runtime_version->setText(qVersion());
/* @todo
* Futher licensing information, including:
* - License of this product
* - License of tableprinter
* - (license of qt?)
* - (license of VG artwork?)
*/
}
AboutPage::~AboutPage()
{
delete ui;
}