mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-07-11 01:34:17 +02:00
Qt: Fix Formatting
This commit is contained in:
@@ -316,7 +316,7 @@ void MainWindow::setupStatusBarWidgets()
|
||||
SettingsInterface* game_layer = Host::Internal::GetGameSettingsLayer();
|
||||
m_status_volume_per_game_action->setEnabled(game_layer != nullptr && QtHost::IsVMValid());
|
||||
m_status_volume_per_game_action->setChecked(game_layer &&
|
||||
(game_layer->ContainsValue("SPU2/Output", "StandardVolume") || game_layer->ContainsValue("SPU2/Output", "OutputMuted")));
|
||||
(game_layer->ContainsValue("SPU2/Output", "StandardVolume") || game_layer->ContainsValue("SPU2/Output", "OutputMuted")));
|
||||
});
|
||||
|
||||
connect(m_status_volume_per_game_action, &QAction::triggered, this, [this](bool checked) {
|
||||
|
||||
+14
-17
@@ -994,19 +994,19 @@ void EmuThread::updatePerformanceMetrics(bool force)
|
||||
if (THREAD_VU1)
|
||||
{
|
||||
gs_stat = tr("Slot: %1 | %2 | EE: %3% | VU: %4% | GS: %5%")
|
||||
.arg(slot)
|
||||
.arg(gs_stat_str.c_str())
|
||||
.arg(PerformanceMetrics::GetCPUThreadUsage(), 0, 'f', 0)
|
||||
.arg(PerformanceMetrics::GetVUThreadUsage(), 0, 'f', 0)
|
||||
.arg(PerformanceMetrics::GetGSThreadUsage(), 0, 'f', 0);
|
||||
.arg(slot)
|
||||
.arg(gs_stat_str.c_str())
|
||||
.arg(PerformanceMetrics::GetCPUThreadUsage(), 0, 'f', 0)
|
||||
.arg(PerformanceMetrics::GetVUThreadUsage(), 0, 'f', 0)
|
||||
.arg(PerformanceMetrics::GetGSThreadUsage(), 0, 'f', 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
gs_stat = tr("Slot: %1 | %2 | EE: %3% | GS: %4%")
|
||||
.arg(slot)
|
||||
.arg(gs_stat_str.c_str())
|
||||
.arg(PerformanceMetrics::GetCPUThreadUsage(), 0, 'f', 0)
|
||||
.arg(PerformanceMetrics::GetGSThreadUsage(), 0, 'f', 0);
|
||||
.arg(slot)
|
||||
.arg(gs_stat_str.c_str())
|
||||
.arg(PerformanceMetrics::GetCPUThreadUsage(), 0, 'f', 0)
|
||||
.arg(PerformanceMetrics::GetGSThreadUsage(), 0, 'f', 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1108,16 +1108,13 @@ void EmuThread::updatePerformanceMetrics(bool force)
|
||||
|
||||
if (limiter_mode != m_last_limiter_mode || force)
|
||||
{
|
||||
QMetaObject::invokeMethod(g_main_window, [limiter_mode]() {
|
||||
g_main_window->getStatusSpeedWidget()->setIcon(QIcon::fromTheme(
|
||||
limiter_mode == LimiterModeType::Turbo ? QStringLiteral("fast-forward-line") :
|
||||
limiter_mode == LimiterModeType::Slomo ? QStringLiteral("slow-mo") :
|
||||
limiter_mode == LimiterModeType::Unlimited ? QStringLiteral("speed-line") :
|
||||
QStringLiteral("dashboard-line")));
|
||||
}, Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(g_main_window, [limiter_mode]() { g_main_window->getStatusSpeedWidget()->setIcon(QIcon::fromTheme(
|
||||
limiter_mode == LimiterModeType::Turbo ? QStringLiteral("fast-forward-line") :
|
||||
limiter_mode == LimiterModeType::Slomo ? QStringLiteral("slow-mo") :
|
||||
limiter_mode == LimiterModeType::Unlimited ? QStringLiteral("speed-line") :
|
||||
QStringLiteral("dashboard-line"))); }, Qt::QueuedConnection);
|
||||
m_last_limiter_mode = limiter_mode;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user