aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowUI.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-15 02:12:38 +0000
committerSaturneric <[email protected]>2022-01-15 02:12:38 +0000
commit96d14413a5da23ab6ac5aa93a966cd19d4898288 (patch)
tree880829f3978029aeff391e56fb15fdc52b4a3f63 /src/ui/main_window/MainWindowUI.cpp
parent<doc, refactor>(ci): Tidy up code in gpg/function (diff)
downloadGpgFrontend-96d14413a5da23ab6ac5aa93a966cd19d4898288.tar.gz
GpgFrontend-96d14413a5da23ab6ac5aa93a966cd19d4898288.zip
<doc, refactor>(ci): Tidy up code of core and related parts
1. Rename related entities. 2. Add a comments.
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r--src/ui/main_window/MainWindowUI.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp
index c1cd5749..3d1e45b8 100644
--- a/src/ui/main_window/MainWindowUI.cpp
+++ b/src/ui/main_window/MainWindowUI.cpp
@@ -479,7 +479,7 @@ void MainWindow::createDockWindows() {
KeyListColumn::TYPE | KeyListColumn::NAME | KeyListColumn::EmailAddress |
KeyListColumn::Usage | KeyListColumn::Validity,
[](const GpgKey& key) -> bool {
- return !(key.revoked() || key.disabled() || key.expired());
+ return !(key.IsRevoked() || key.IsDisabled() || key.IsExpired());
});
mKeyList->addListGroupTab(
@@ -487,8 +487,8 @@ void MainWindow::createDockWindows() {
KeyListColumn::TYPE | KeyListColumn::NAME | KeyListColumn::EmailAddress |
KeyListColumn::Usage | KeyListColumn::Validity,
[](const GpgKey& key) -> bool {
- return !key.is_private_key() &&
- !(key.revoked() || key.disabled() || key.expired());
+ return !key.IsPrivateKey() &&
+ !(key.IsRevoked() || key.IsDisabled() || key.IsExpired());
});
mKeyList->addListGroupTab(
@@ -496,8 +496,8 @@ void MainWindow::createDockWindows() {
KeyListColumn::TYPE | KeyListColumn::NAME | KeyListColumn::EmailAddress |
KeyListColumn::Usage | KeyListColumn::Validity,
[](const GpgKey& key) -> bool {
- return key.is_private_key() &&
- !(key.revoked() || key.disabled() || key.expired());
+ return key.IsPrivateKey() &&
+ !(key.IsRevoked() || key.IsDisabled() || key.IsExpired());
});
mKeyList->slotRefresh();