mirror of
https://github.com/Lime3DS/Lime3DS
synced 2025-01-09 13:43:27 +00:00
lime_qt: Use non-breaking spaces+hyphens in command output message boxes
This commit is contained in:
parent
9a4312822a
commit
1e5343a243
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <QtConcurrent/QtConcurrentRun>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/ostream.h>
|
||||
#ifdef __APPLE__
|
||||
|
@ -155,6 +156,8 @@ static QString PrettyProductName() {
|
|||
|
||||
void GMainWindow::ShowCommandOutput(std::string title, std::string message) {
|
||||
#ifdef _WIN32
|
||||
boost::replace_all(message, " ", "\u00a0"); // Non-breaking space
|
||||
boost::replace_all(message, "-", "\u2011"); // Non-breaking hyphen
|
||||
QMessageBox::information(this, QString::fromStdString(title), QString::fromStdString(message));
|
||||
#else
|
||||
std::cout << message << std::endl;
|
||||
|
|
Loading…
Reference in a new issue