aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-10-19 15:03:47 +0000
committersaturneric <[email protected]>2025-10-19 15:03:47 +0000
commit509fcd79162a71de771cab9fe5608f5f15d06c99 (patch)
tree76a8fa043936d1ac241691a8b47e175bae88c02b /src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
parentfeat(gpg): add attribute extraction and photo viewer UI (diff)
downloadGpgFrontend-509fcd79162a71de771cab9fe5608f5f15d06c99.tar.gz
GpgFrontend-509fcd79162a71de771cab9fe5608f5f15d06c99.zip
feat(ui): add photo IDs tab to key details dialog
* Introduces a new tab for displaying photo ID attributes (JPG images) in the key details dialog when available * Implements a dedicated viewer with thumbnail previews and selection for enhanced user experience * Improves row count handling in UID and signature lists for clarity Relates to improved key attribute visualization
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairUIDTab.cpp')
-rw-r--r--src/ui/dialog/keypair_details/KeyPairUIDTab.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp b/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
index 9e81fae6..ec78f736 100644
--- a/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
+++ b/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
@@ -177,7 +177,8 @@ void KeyPairUIDTab::slot_refresh_uid_list() {
this->buffered_uids_.push_back(std::move(uid));
}
- uid_list_->setRowCount(buffered_uids_.size());
+ const int rows = static_cast<int>(buffered_uids_.size());
+ uid_list_->setRowCount(rows);
for (const auto& uid : buffered_uids_) {
auto* tmp0 = new QTableWidgetItem(uid.GetName());
@@ -266,7 +267,8 @@ void KeyPairUIDTab::slot_refresh_sig_list() {
buffered_signatures_.push_back(std::move(sig));
}
- sig_list_->setRowCount(buffered_signatures_.size());
+ const int rows = static_cast<int>(buffered_signatures_.size());
+ sig_list_->setRowCount(rows);
for (const auto& sig : buffered_signatures_) {
auto* tmp0 = new QTableWidgetItem(sig.GetKeyID());