mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:20:06 +00:00
GCC doesn't implement <format> yet, use fmt
This commit is contained in:
parent
593010acc2
commit
31db9a4315
12 changed files with 27 additions and 28 deletions
|
|
@ -12,8 +12,7 @@
|
|||
#include <scwx/util/logger.hpp>
|
||||
#include <scwx/util/threads.hpp>
|
||||
|
||||
#include <format>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <QColorDialog>
|
||||
#include <QFileDialog>
|
||||
#include <QToolButton>
|
||||
|
|
@ -622,7 +621,7 @@ void SettingsDialogImpl::SetBackgroundColor(const std::string& value,
|
|||
QFrame* frame)
|
||||
{
|
||||
frame->setStyleSheet(
|
||||
QString::fromStdString(std::format("background-color: {}", value)));
|
||||
QString::fromStdString(fmt::format("background-color: {}", value)));
|
||||
}
|
||||
|
||||
void SettingsDialogImpl::UpdateRadarDialogLocation(const std::string& id)
|
||||
|
|
@ -676,7 +675,7 @@ void SettingsDialogImpl::ResetToDefault()
|
|||
std::string SettingsDialogImpl::RadarSiteLabel(
|
||||
std::shared_ptr<config::RadarSite>& radarSite)
|
||||
{
|
||||
return std::format("{} ({})", radarSite->id(), radarSite->location_name());
|
||||
return fmt::format("{} ({})", radarSite->id(), radarSite->location_name());
|
||||
}
|
||||
|
||||
} // namespace ui
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue