Skip to content
Snippets Groups Projects
Select Git revision
21 results Searching

buffer.h

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    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;
    }