Merge pull request #5934 from Cacodemon345/master

Qt6 fixes
This commit is contained in:
Miran Grča
2025-08-11 18:06:38 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -225,7 +225,7 @@ MainWindow::MainWindow(QWidget *parent)
frameRateTimer->setInterval(1000);
frameRateTimer->setSingleShot(false);
connect(frameRateTimer, &QTimer::timeout, [this, hertz_label] {
hertz_label->setText(QString("%1 Hz").arg(monitors[0].mon_actualrenderedframes));
hertz_label->setText(tr("%1 Hz").arg(monitors[0].mon_actualrenderedframes.load()));
});
statusBar()->addPermanentWidget(hertz_label);
frameRateTimer->start(1000);

View File

@@ -105,7 +105,7 @@ RendererStack::RendererStack(QWidget *parent, int monitor_index)
frameRateTimer->setSingleShot(false);
frameRateTimer->setInterval(1000);
connect(frameRateTimer, &QTimer::timeout, [this] {
this->setWindowTitle(QObject::tr("86Box Monitor #") + QString::number(m_monitor_index + 1) + QString(" - %1 Hz").arg(monitors[m_monitor_index].mon_actualrenderedframes));
this->setWindowTitle(QObject::tr("86Box Monitor #") + QString::number(m_monitor_index + 1) + QString(" - ") + tr("%1 Hz").arg(monitors[m_monitor_index].mon_actualrenderedframes.load()));
});
frameRateTimer->start(1000);
}