aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyPairUIDTab.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-14 19:48:15 +0000
committerSaturneric <[email protected]>2022-01-14 19:48:15 +0000
commitdf550288147b32dc42dd9161e2a4da52e1f794ea (patch)
treea370b0964c5ce30d42759f39e5200deec5c821d6 /src/ui/keypair_details/KeyPairUIDTab.cpp
parent<doc>(core): add comment for code (diff)
downloadGpgFrontend-df550288147b32dc42dd9161e2a4da52e1f794ea.tar.gz
GpgFrontend-df550288147b32dc42dd9161e2a4da52e1f794ea.zip
<doc, refactor>(ci): Tidy up code in gpg/function
1. Rename related entities. 2. Add a comments.
Diffstat (limited to 'src/ui/keypair_details/KeyPairUIDTab.cpp')
-rw-r--r--src/ui/keypair_details/KeyPairUIDTab.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/keypair_details/KeyPairUIDTab.cpp b/src/ui/keypair_details/KeyPairUIDTab.cpp
index 92a3c3ea..961068e5 100644
--- a/src/ui/keypair_details/KeyPairUIDTab.cpp
+++ b/src/ui/keypair_details/KeyPairUIDTab.cpp
@@ -26,7 +26,7 @@
#include "gpg/function/GpgKeyGetter.h"
#include "gpg/function/GpgKeyManager.h"
-#include "gpg/function/UidOperator.h"
+#include "gpg/function/UIDOperator.h"
#include "ui/SignalStation.h"
#include "ui/widgets/TOFUInfoPage.h"
@@ -376,7 +376,7 @@ void KeyPairUIDTab::slotDelUID() {
if (ret == QMessageBox::Yes) {
for (const auto& uid : *selected_uids) {
LOG(INFO) << "KeyPairUIDTab::slotDelUID UID" << uid;
- if (!UidOperator::GetInstance().revUID(mKey, uid)) {
+ if (!UIDOperator::GetInstance().RevUID(mKey, uid)) {
QMessageBox::critical(
nullptr, _("Operation Failed"),
QString(_("An error occurred during the delete %1 operation."))
@@ -411,7 +411,7 @@ void KeyPairUIDTab::slotSetPrimaryUID() {
QMessageBox::No | QMessageBox::Yes);
if (ret == QMessageBox::Yes) {
- if (!UidOperator::GetInstance().setPrimaryUID(mKey,
+ if (!UIDOperator::GetInstance().SetPrimaryUID(mKey,
selected_uids->front())) {
QMessageBox::critical(nullptr, _("Operation Failed"),
_("An error occurred during the operation."));
@@ -510,7 +510,7 @@ void KeyPairUIDTab::slotDelUIDSingle() {
QMessageBox::No | QMessageBox::Yes);
if (ret == QMessageBox::Yes) {
- if (!UidOperator::GetInstance().revUID(mKey, selected_uids->front())) {
+ if (!UIDOperator::GetInstance().RevUID(mKey, selected_uids->front())) {
QMessageBox::critical(nullptr, _("Operation Failed"),
_("An error occurred during the operation."));
} else {
@@ -562,7 +562,7 @@ void KeyPairUIDTab::slotDelSign() {
QMessageBox::No | QMessageBox::Yes);
if (ret == QMessageBox::Yes) {
- if (!GpgKeyManager::GetInstance().revSign(mKey, selected_signs)) {
+ if (!GpgKeyManager::GetInstance().RevSign(mKey, selected_signs)) {
QMessageBox::critical(nullptr, _("Operation Failed"),
_("An error occurred during the operation."));
}