temporary commit for Anastasia
This commit is contained in:
parent
96326a8a28
commit
3ad4018519
BIN
PasswordManager.zip
Normal file
BIN
PasswordManager.zip
Normal file
Binary file not shown.
@ -197,6 +197,17 @@ void MainWindow::createDatabase(const QString &dbName, const QString &password)
|
||||
" time INTEGER /* дата добавления */" \
|
||||
");"); // исполнение запроса на добавление записи.
|
||||
|
||||
// query->clear(); // очистка запроса.
|
||||
// qDebug() << "Создание таблицы credentials:" <<
|
||||
// query->exec("CREATE TABLE credentials(" \
|
||||
// " id TEXT PRIMARY KEY NOT NULL, /* идентификатор */" \
|
||||
// " name TEXT, /* имя */" \
|
||||
// " number TEXT, /* номер карты */" \
|
||||
// " password TEXT, /* пароль */" \
|
||||
// " url TEXT, /* web url */" \
|
||||
// " note TEXT, /* примечания */" \
|
||||
// " time INTEGER /* дата добавления */" \
|
||||
// ");"); // исполнение запроса на добавление записи.
|
||||
|
||||
delete crypto;
|
||||
crypto = new SimpleCrypt(convertPassword(password));
|
||||
|
||||
@ -4,12 +4,10 @@
|
||||
#include <QMainWindow>
|
||||
#include "manager.h"
|
||||
#include "genpass.h"
|
||||
//# include"recordmodificationdialog.h"
|
||||
//#include "addst.h"
|
||||
|
||||
#include"adddialog.h"
|
||||
#include"del.h"
|
||||
#include"about.h"
|
||||
//#include"hello.h"
|
||||
#include"cryptographer.h"
|
||||
#include"addc.h"
|
||||
|
||||
@ -37,20 +35,17 @@ public:
|
||||
bool checkPassoword(QString word);
|
||||
|
||||
private:
|
||||
// Manager* manager;
|
||||
Ui::MainWindow *ui;
|
||||
GenPass genpass;
|
||||
AddDialog *dial;
|
||||
About about;
|
||||
AddC addc;
|
||||
// Hello* hello;
|
||||
SimpleCrypt* crypto;
|
||||
QSqlDatabase m_db; // объект базы данных.
|
||||
QSqlQuery *query; // указатель на запрос.
|
||||
QSqlTableModel *model; // указатель на таблицу данных в приложении.
|
||||
|
||||
Del* del;
|
||||
// AddSt addst;
|
||||
static const QString fileDialogFilterString;
|
||||
static constexpr char* checkpoint = "checkpoint";
|
||||
// int recordsCount;
|
||||
@ -74,23 +69,16 @@ private slots:
|
||||
void on_addButton_clicked();
|
||||
|
||||
void addRecordSlot(Record *r);//слот принимающий текст из LineEdit
|
||||
// void openDBSlot(QString path);
|
||||
void acceptDelete();
|
||||
|
||||
void on_pushButton_clicked();
|
||||
// void on_pushButton_2_clicked();
|
||||
void on_actionExit_triggered();
|
||||
// void on_tableView_activated(const QModelIndex &index);
|
||||
void on_deleteButton_clicked();
|
||||
void on_pushButton_5_clicked();
|
||||
// void on_editButton_clicked();
|
||||
void on_pushButton_7_clicked();
|
||||
void on_actionblakc_triggered();
|
||||
void on_pushButton_9_clicked();
|
||||
void on_action_7_triggered();
|
||||
// void on_action_2_triggered();
|
||||
// void on_action_2_triggered(bool checked);
|
||||
// void on_editSaveButton_clicked();
|
||||
void on_pushButton_4_clicked();
|
||||
void on_pushButton_6_clicked();
|
||||
void on_addCard_clicked();
|
||||
|
||||
@ -114,7 +114,7 @@
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget" name="page_8">
|
||||
<widget class="QTableView" name="tableViewRecords_3">
|
||||
<widget class="QTableView" name="tableViewCards">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user