Qt: Remove unused focusDisplayWidget()

This commit is contained in:
Stenzek
2025-11-28 21:43:52 +10:00
parent c91446c603
commit 33b532d10b
3 changed files with 0 additions and 11 deletions

View File

@@ -551,14 +551,6 @@ void MainWindow::updateGameListRelatedActions()
m_ui.actionClearGameListBackground->setDisabled(disable || !has_background);
}
void MainWindow::focusDisplayWidget()
{
if (!m_display_widget || centralWidget() != m_display_widget)
return;
m_display_widget->setFocus();
}
QWidget* MainWindow::getDisplayContainer() const
{
return (m_display_container ? static_cast<QWidget*>(m_display_container) : static_cast<QWidget*>(m_display_widget));
@@ -2559,7 +2551,6 @@ void MainWindow::connectSignals()
connect(g_emu_thread, &EmuThread::onReleaseRenderWindowRequested, this, &MainWindow::releaseRenderWindow);
connect(g_emu_thread, &EmuThread::onResizeRenderWindowRequested, this, &MainWindow::displayResizeRequested,
Qt::BlockingQueuedConnection);
connect(g_emu_thread, &EmuThread::focusDisplayWidgetRequested, this, &MainWindow::focusDisplayWidget);
connect(g_emu_thread, &EmuThread::systemStarting, this, &MainWindow::onSystemStarting);
connect(g_emu_thread, &EmuThread::systemStarted, this, &MainWindow::onSystemStarted);
connect(g_emu_thread, &EmuThread::systemStopping, this, &MainWindow::onSystemStopping);

View File

@@ -229,7 +229,6 @@ private:
bool surfaceless, Error* error);
void displayResizeRequested(qint32 width, qint32 height);
void releaseRenderWindow();
void focusDisplayWidget();
void onMouseModeRequested(bool relative_mode, bool hide_cursor);
void onSettingsResetToDefault(bool system, bool controller);

View File

@@ -118,7 +118,6 @@ Q_SIGNALS:
bool exclusive_fullscreen, bool surfaceless, Error* error);
void onResizeRenderWindowRequested(qint32 width, qint32 height);
void onReleaseRenderWindowRequested();
void focusDisplayWidgetRequested();
void inputProfileLoaded();
void mouseModeRequested(bool relative, bool hide_cursor);
void fullscreenUIStartedOrStopped(bool running);