diff options
author | saturneric <[email protected]> | 2024-01-12 06:02:37 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-12 06:02:37 +0000 |
commit | bf538056b24a68b8fd235b1c50991ee8eb46a776 (patch) | |
tree | e1bab54095b80df62b321fb5bd69453f9f951b05 /src/ui/dialog/QuitDialog.cpp | |
parent | feat: improve api and ui of keys import and export (diff) | |
download | GpgFrontend-bf538056b24a68b8fd235b1c50991ee8eb46a776.tar.gz GpgFrontend-bf538056b24a68b8fd235b1c50991ee8eb46a776.zip |
refactor: use QString instead of std::string and improve threading system
Diffstat (limited to 'src/ui/dialog/QuitDialog.cpp')
-rwxr-xr-x | src/ui/dialog/QuitDialog.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ui/dialog/QuitDialog.cpp b/src/ui/dialog/QuitDialog.cpp index 7ad6f835..c02f5898 100755 --- a/src/ui/dialog/QuitDialog.cpp +++ b/src/ui/dialog/QuitDialog.cpp @@ -28,8 +28,6 @@ #include "QuitDialog.h" -#include <boost/format.hpp> - namespace GpgFrontend::UI { QuitDialog::QuitDialog(QWidget* parent, const QHash<int, QString>& unsavedDocs) @@ -83,10 +81,10 @@ QuitDialog::QuitDialog(QWidget* parent, const QHash<int, QString>& unsavedDocs) warn_icon->setPixmap(pixmap); const auto info = - boost::format(_("%1% files contain unsaved information.<br/>Save the " - "changes before closing?")) % - std::to_string(row); - auto* warn_label = new QLabel(QString::fromStdString(info.str())); + QString(_("%1 files contain unsaved information.<br/>Save the " + "changes before closing?")) + .arg(row); + auto* warn_label = new QLabel(info); auto* warn_box_layout = new QHBoxLayout(); warn_box_layout->addWidget(warn_icon); warn_box_layout->addWidget(warn_label); |