mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-13 18:04:32 +00:00
Qt: Remove unused focusDisplayWidget()
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user