diff options
Diffstat (limited to 'src/ui/widgets/VerifyKeyDetailBox.cpp')
-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; } |