Files
sqlitebrowser/src/AboutDialog.cpp
Martin Kleusberg 167d8cbd74 cipher: Fix build option and use a dialog for entering the password
Fix the sqlcipher build option in the qmake project to actually enable
the SQLCipher support.

Add a new dialog called CipherDialog which is used to ask the user for
the password and other encryption details instead of using standard Qt
input dialogs.
2014-11-02 13:12:31 +01:00

26 lines
744 B
C++

#include "AboutDialog.h"
#include "ui_AboutDialog.h"
#include "gen_version.h"
#include "sqlite.h"
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
this->setFixedSize(this->width(), this->height());
ui->label_version->setText(ui->label_version->text() + " " + APP_VERSION);
ui->label_versionqt->setText(ui->label_versionqt->text() + " " + QT_VERSION_STR);
#ifdef ENABLE_SQLCIPHER
ui->label_versionsqlite->setText(ui->label_versionsqlite->text().replace("SQLite", "SQLCipher") + " " + SQLITE_VERSION);
#else
ui->label_versionsqlite->setText(ui->label_versionsqlite->text() + " " + SQLITE_VERSION);
#endif
}
AboutDialog::~AboutDialog()
{
delete ui;
}