mirror of
https://github.com/86Box/86Box.git
synced 2026-02-26 05:53:15 -07:00
Properly separate Qt and SDL UI codepaths in update_mouse_msg()
Also drop the related hack for non-Windows platforms in qt_mainwindow.cpp
This commit is contained in:
@@ -313,20 +313,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
return;
|
||||
}
|
||||
if (!hide_tool_bar)
|
||||
#ifdef _WIN32
|
||||
toolbar_label->setText(title);
|
||||
#else
|
||||
{
|
||||
/* get the percentage and mouse message, TODO: refactor ui_window_title() */
|
||||
auto parts = title.split(" - ");
|
||||
if (parts.size() >= 2) {
|
||||
if (parts.size() < 5)
|
||||
toolbar_label->setText(parts[1]);
|
||||
else
|
||||
toolbar_label->setText(QString("%1 - %2").arg(parts[1], parts.last()));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
});
|
||||
connect(this, &MainWindow::getTitleForNonQtThread, this, &MainWindow::getTitle_, Qt::BlockingQueuedConnection);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user