mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
31 lines
1000 B
C++
31 lines
1000 B
C++
#include "AboutDialog.h"
|
|
#include "ui_AboutDialog.h"
|
|
#include "sqlitedb.h"
|
|
#include "Application.h"
|
|
|
|
AboutDialog::AboutDialog(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::AboutDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
this->setFixedSize(this->width(), this->height());
|
|
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
|
|
|
QString sqlite_version, sqlcipher_version;
|
|
DBBrowserDB::getSqliteVersion(sqlite_version, sqlcipher_version);
|
|
if(sqlcipher_version.isNull())
|
|
sqlite_version = tr("SQLite Version ") + sqlite_version;
|
|
else
|
|
sqlite_version = tr("SQLCipher Version ") + sqlcipher_version + tr(" (based on SQLite %1)").arg(sqlite_version);
|
|
|
|
ui->label_version->setText(tr("Version ") + Application::versionString() + "\n\n" +
|
|
tr("Qt Version ") + QT_VERSION_STR + "\n\n" +
|
|
sqlite_version
|
|
);
|
|
}
|
|
|
|
AboutDialog::~AboutDialog()
|
|
{
|
|
delete ui;
|
|
}
|