diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 678c3f7..9ab3c8c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -14,8 +14,6 @@ AppWindow::AppWindow() : QMainWindow(nullptr), ui(new Ui::MainWindow()) {
ui->setupUi(this);
connect(ui->btnFolderSelect, &QToolButton::clicked, this,
&AppWindow::onAppFolderSelect_click);
- connect(ui->btnSelectPublicKey, &QToolButton::clicked, this,
- &AppWindow::onPublicKeySelect_click);
connect(ui->btnSign, &QPushButton::clicked, this, &AppWindow::onSign_click);
connect(ui->btnVerify, &QPushButton::clicked, this,
&AppWindow::onVerify_click);
@@ -28,22 +26,9 @@ void AppWindow::onAppFolderSelect_click() {
this, tr("Open Directory"), basePath,
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
ui->txtFolderPath->setText(dir);
- QString pubKey = checkPublicKey(dir);
- if (!pubKey.isEmpty()) {
- ui->txtPublicKey->setText(pubKey);
}
}
-void AppWindow::onPublicKeySelect_click() {
- auto basePath = ui->txtFolderPath->text();
- if (basePath.isEmpty()) {
- QStandardPaths::standardLocations(QStandardPaths::HomeLocation);
- }
- QString fileName = QFileDialog::getOpenFileName(
- this, tr("Open Public Key File"), basePath, tr("KeyFiles (*.pub)"));
- ui->txtPublicKey->setText(fileName);
-}
-
void AppWindow::onSign_click() {
std::string dir = ui->txtFolderPath->text().toStdString();
IntegretyCheck integretyCheck(dir, true);
diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui
index 57b0e01..54871d8 100644
--- a/ui/mainwindow.ui
+++ b/ui/mainwindow.ui
@@ -6,7 +6,7 @@
0
0
- 800
+ 696
375
@@ -16,48 +16,27 @@
-
-
-
-
-
-
- PublicKey:
-
-
-
- -
+
+
-
Application Folder:
- -
-
-
-
-
-
- -
-
-
- ...
-
-
-
-
+ -
+
+
+ true
+
+
- -
-
-
-
-
-
- -
-
-
- ...
-
-
-
-
+ -
+
+
+ ...
+
+
@@ -78,6 +57,9 @@
-
+
+ false
+
1
@@ -104,6 +86,9 @@
-
+
+ false
+
1
@@ -131,14 +116,18 @@
-
-
+
+
+
+ Droid Sans Mono
+
+
+
- txtPublicKey
- btnSelectPublicKey
txtFolderPath
btnFolderSelect
btnSign