diff options
author | Saturneric <[email protected]> | 2021-06-04 20:37:57 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-06-04 20:37:57 +0000 |
commit | 9581b6799502f88acaccb14407bb1b7143c0ef71 (patch) | |
tree | 26b1a7bceeac20abbd47543291c6400bcc2890bc /src/MainWindow.cpp | |
parent | Add an operation to change the expiration date of the subkey. (diff) | |
download | GpgFrontend-9581b6799502f88acaccb14407bb1b7143c0ef71.tar.gz GpgFrontend-9581b6799502f88acaccb14407bb1b7143c0ef71.zip |
Update the verification function.
Make the format of the generated ciphertext more beautiful.
Adjust the width of the key list on the homepage.
Add fingerprint display of subkey.
Fix the compatibility issue of getKeyByFpr interface subkey.
Improve the comprehensiveness of information processing for verification results.
Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r-- | src/MainWindow.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index f4d2badb..7cb08835 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -35,7 +35,15 @@ MainWindow::MainWindow() { setCentralWidget(edit); /* the list of Keys available*/ - mKeyList = new KeyList(mCtx); + mKeyList = new KeyList(mCtx, + KeyListRow::SECRET_OR_PUBLIC_KEY, + KeyListColumn::TYPE | KeyListColumn::NAME | KeyListColumn::EmailAddress | KeyListColumn::Usage | KeyListColumn::Validity, + this); + mKeyList->setFilter([](const GpgKey &key) -> bool { + if(key.revoked || key.disabled || key.expired) return false; + else return true; + }); + mKeyList->slotRefresh(); /* List of binary Attachments */ attachmentDockCreated = false; @@ -75,6 +83,7 @@ MainWindow::MainWindow() { } } edit->curTextPage()->setFocus(); + this->setMinimumSize(1200, 700); this->setWindowTitle(qApp->applicationName()); this->show(); @@ -581,9 +590,10 @@ void MainWindow::createStatusBar() { void MainWindow::createDockWindows() { /* KeyList-Dockwindow */ - keylistDock = new QDockWidget(tr("Encrypt for:"), this); + keylistDock = new QDockWidget(tr("Key ToolBox"), this); keylistDock->setObjectName("EncryptDock"); keylistDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); + keylistDock->setMinimumWidth(460); addDockWidget(Qt::RightDockWidgetArea, keylistDock); keylistDock->setWidget(mKeyList); viewMenu->addAction(keylistDock->toggleViewAction()); @@ -820,7 +830,7 @@ void MainWindow::slotFind() { } void MainWindow::slotVerify() { - if (edit->tabCount() == 0 || edit->slotCurPage() == 0) { + if (edit->tabCount() == 0 || edit->slotCurPage() == nullptr) { return; } |