From bb040c8c32b2082b356c4c83b1e5887b374cc194 Mon Sep 17 00:00:00 2001 From: Daniil Date: Wed, 12 Feb 2025 22:01:48 +0300 Subject: [PATCH] fiasko --- PasswordManager/mainwindow.cpp | 31 +-------- PasswordManager/mainwindow.h | 1 - PasswordManager/mainwindow.ui | 114 +-------------------------------- PasswordManager/record.cpp | 3 +- README.md | 7 +- 5 files changed, 5 insertions(+), 151 deletions(-) diff --git a/PasswordManager/mainwindow.cpp b/PasswordManager/mainwindow.cpp index ab14e75..c121b6b 100644 --- a/PasswordManager/mainwindow.cpp +++ b/PasswordManager/mainwindow.cpp @@ -732,16 +732,8 @@ void MainWindow::on_actionExit_triggered() QCoreApplication::quit(); } - - - - -void MainWindow::on_action_triggered() +void MainWindow::on_actionblakc_triggered() { - ui->stackedWidget->setCurrentIndex(1); - -} - } @@ -1088,25 +1080,4 @@ void MainWindow::on_pushButton_8_clicked() } -void MainWindow::deleteRecordSlot(bool flag) -{ - deleteRecord(); -} - -void MainWindow::on_editSaveButton_clicked() -{ - Record* r = new Record(); - r->setId(ui->tableViewRecords->selectionModel()->selection().indexes().at(0).row()); - r->setName(ui->lineEdit_name->text()); - r->setUsername(ui->lineEdit_username->text()); - r->setPassword(ui->lineEdit_password->text()); - r->setURL(ui->lineEdit_url->text()); - r->setNote(ui->lineEdit_note->text()); - updateRecord(r); - model->select(); - ui->stackedWidget->setCurrentIndex(0); - QModelIndex index = ui->tableViewRecords->model()->index(r->getId(), 0); - ui->tableViewRecords->setCurrentIndex(index); - -} diff --git a/PasswordManager/mainwindow.h b/PasswordManager/mainwindow.h index f572cf8..ff7813f 100644 --- a/PasswordManager/mainwindow.h +++ b/PasswordManager/mainwindow.h @@ -3,7 +3,6 @@ #include #include "genpass.h" -#include "cryptographer.h" //# include"recordmodificationdialog.h" //#include "addst.h" #include"adddialog.h" diff --git a/PasswordManager/mainwindow.ui b/PasswordManager/mainwindow.ui index 19dd7ee..b2fd9a8 100644 --- a/PasswordManager/mainwindow.ui +++ b/PasswordManager/mainwindow.ui @@ -31,7 +31,7 @@ false - 0 + 2 @@ -619,123 +619,13 @@ - - - - - 260 - 120 - 67 - 17 - - - - Путь: - - - - - - 360 - 120 - 511 - 25 - - - - - - - 250 - 190 - 67 - 17 - - - - Пароль: - - - - - - 360 - 190 - 511 - 25 - - - - - - - 180 - 260 - 191 - 20 - - - - Подтвердите пароль: - - - - - - 360 - 260 - 511 - 25 - - - - - - - 270 - 360 - 141 - 31 - - - - Создать - - - - - - 530 - 360 - 141 - 31 - - - - Разблокировать - - - - - - 430 - 50 - 141 - 17 - - - - Создать новую БД - - - 10 0 - 1001 + 781 41 diff --git a/PasswordManager/record.cpp b/PasswordManager/record.cpp index d78155e..359c740 100644 --- a/PasswordManager/record.cpp +++ b/PasswordManager/record.cpp @@ -64,8 +64,7 @@ Record::Record(QString name, this->note = note; this->time = QDateTime::currentDateTime(); } -Record::Record(int id, - QString name, +Record::Record(QString name, QString username, QString password, QString URL, diff --git a/README.md b/README.md index 61409cb..7eab806 100644 --- a/README.md +++ b/README.md @@ -1,6 +1 @@ -# Credentials Manager - -## Origin: password_manager - -Install requirements: -`sudo apt-get install libcrypto++-dev libcrypto++-doc libcrypto++-utils` +# password_manager \ No newline at end of file