diff options
author | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-06 20:38:05 +0000 |
commit | 4f9ee73ffdda5a495d25ebf4f769a4c43aa78295 (patch) | |
tree | 7ef532525a250c485d95c1df5e4b432e169ec53c /src/ui/widgets/VerifyKeyDetailBox.cpp | |
parent | Improve UI & Functions (diff) | |
download | GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.tar.gz GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.zip |
Test & Improve UI
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/VerifyKeyDetailBox.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/ui/widgets/VerifyKeyDetailBox.cpp b/src/ui/widgets/VerifyKeyDetailBox.cpp index 3975ac93..3187e156 100644 --- a/src/ui/widgets/VerifyKeyDetailBox.cpp +++ b/src/ui/widgets/VerifyKeyDetailBox.cpp @@ -181,32 +181,31 @@ QGridLayout* VerifyKeyDetailBox::createKeyInfoGrid( grid->addWidget(new QLabel(_("NOT Fully Valid")), 3, 1); } - QString flags; - QTextStream textStream(&flags); + std::stringstream text_stream; if (signature.summary() & GPGME_SIGSUM_GREEN) { - textStream << _("Good") << " "; + text_stream << _("Good") << " "; } if (signature.summary() & GPGME_SIGSUM_RED) { - textStream << _("Bad") << " "; + text_stream << _("Bad") << " "; } if (signature.summary() & GPGME_SIGSUM_SIG_EXPIRED) { - textStream << _("Expired") << " "; + text_stream << _("Expired") << " "; } if (signature.summary() & GPGME_SIGSUM_KEY_MISSING) { - textStream << _("Missing Key") << " "; + text_stream << _("Missing Key") << " "; } if (signature.summary() & GPGME_SIGSUM_KEY_REVOKED) { - textStream << _("Revoked Key") << " "; + text_stream << _("Revoked Key") << " "; } if (signature.summary() & GPGME_SIGSUM_KEY_EXPIRED) { - textStream << _("Expired Key") << " "; + text_stream << _("Expired Key") << " "; } if (signature.summary() & GPGME_SIGSUM_CRL_MISSING) { - textStream << _("Missing CRL") << " "; + text_stream << _("Missing CRL") << " "; } - grid->addWidget(new QLabel(flags.toStdString().c_str()), 4, 1); + grid->addWidget(new QLabel(text_stream.str().c_str()), 4, 1); return grid; } |