aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/KeyList.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-30 18:42:12 +0000
committersaturneric <[email protected]>2024-07-30 18:42:12 +0000
commitdbb4a21931cd10a3caed3c446af0fe06de9873b1 (patch)
treeb3eb2e6fc3e67ea274472dfacfa3451848b43c80 /src/ui/widgets/KeyList.cpp
parentfix: solve known issues on build (diff)
downloadGpgFrontend-dbb4a21931cd10a3caed3c446af0fe06de9873b1.tar.gz
GpgFrontend-dbb4a21931cd10a3caed3c446af0fe06de9873b1.zip
feat: simplify logging
Diffstat (limited to 'src/ui/widgets/KeyList.cpp')
-rw-r--r--src/ui/widgets/KeyList.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp
index 28d95f31..c4a05edc 100644
--- a/src/ui/widgets/KeyList.cpp
+++ b/src/ui/widgets/KeyList.cpp
@@ -350,7 +350,7 @@ auto KeyList::GetSelected() -> KeyIdArgsListPtr {
auto* key_table = qobject_cast<KeyTable*>(ui_->keyGroupTab->currentWidget());
if (key_table == nullptr) {
- qCWarning(ui, "fail to get current key table, nullptr");
+ FLOG_W("fail to get current key table, nullptr");
return ret;
}
@@ -360,7 +360,7 @@ auto KeyList::GetSelected() -> KeyIdArgsListPtr {
}
if (ret->empty()) {
- qCWarning(ui, "nothing is selected at key list");
+ FLOG_W("nothing is selected at key list");
}
return ret;
}
@@ -389,8 +389,8 @@ void KeyList::contextMenuEvent(QContextMenuEvent* event) {
auto* key_table = qobject_cast<KeyTable*>(ui_->keyGroupTab->currentWidget());
if (key_table == nullptr) {
- qCDebug(ui, "m_key_list_ is nullptr, key group tab number: %d",
- ui_->keyGroupTab->count());
+ FLOG_D("m_key_list_ is nullptr, key group tab number: %d",
+ ui_->keyGroupTab->count());
return;
}
@@ -468,7 +468,7 @@ void KeyList::dropEvent(QDropEvent* event) {
QFile file;
file.setFileName(tmp.toLocalFile());
if (!file.open(QIODevice::ReadOnly)) {
- qCWarning(ui) << "couldn't open file: " << tmp.toString();
+ LOG_W() << "couldn't open file: " << tmp.toString();
}
auto in_buffer = file.readAll();
this->import_keys(in_buffer);