Skip to content

Commit

Permalink
lime_qt: Use non-breaking spaces+hyphens in command output message boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenSauce04 committed Oct 30, 2024
1 parent 9a43128 commit 1e5343a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lime_qt/lime_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1e5343a

Please sign in to comment.