mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Remove unused function Host_UpdateProgressDialog
This commit is contained in:
parent
c6ee767851
commit
55f787b898
@ -140,10 +140,6 @@ void Host_YieldToUI()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void Host_UpdateProgressDialog(const char* caption, int position, int total)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void Host_TitleChanged()
|
void Host_TitleChanged()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -43,5 +43,4 @@ void Host_UpdateDisasmDialog();
|
|||||||
void Host_UpdateMainFrame();
|
void Host_UpdateMainFrame();
|
||||||
void Host_UpdateTitle(const std::string& title);
|
void Host_UpdateTitle(const std::string& title);
|
||||||
void Host_YieldToUI();
|
void Host_YieldToUI();
|
||||||
void Host_UpdateProgressDialog(const char* caption, int position, int total);
|
|
||||||
void Host_TitleChanged();
|
void Host_TitleChanged();
|
||||||
|
@ -99,10 +99,6 @@ void Host_YieldToUI()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void Host_UpdateProgressDialog(const char* caption, int position, int total)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void Host_TitleChanged()
|
void Host_TitleChanged()
|
||||||
{
|
{
|
||||||
#ifdef USE_DISCORD_PRESENCE
|
#ifdef USE_DISCORD_PRESENCE
|
||||||
|
@ -125,11 +125,6 @@ void Host_UpdateDisasmDialog()
|
|||||||
QueueOnObject(QApplication::instance(), [] { emit Host::GetInstance()->UpdateDisasmDialog(); });
|
QueueOnObject(QApplication::instance(), [] { emit Host::GetInstance()->UpdateDisasmDialog(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void Host_UpdateProgressDialog(const char* caption, int position, int total)
|
|
||||||
{
|
|
||||||
emit Host::GetInstance()->UpdateProgressDialog(QString::fromUtf8(caption), position, total);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Host::RequestNotifyMapLoaded()
|
void Host::RequestNotifyMapLoaded()
|
||||||
{
|
{
|
||||||
QueueOnObject(QApplication::instance(), [this] { emit NotifyMapLoaded(); });
|
QueueOnObject(QApplication::instance(), [this] { emit NotifyMapLoaded(); });
|
||||||
|
@ -33,7 +33,6 @@ signals:
|
|||||||
void RequestTitle(const QString& title);
|
void RequestTitle(const QString& title);
|
||||||
void RequestStop();
|
void RequestStop();
|
||||||
void RequestRenderSize(int w, int h);
|
void RequestRenderSize(int w, int h);
|
||||||
void UpdateProgressDialog(QString label, int position, int maximum);
|
|
||||||
void UpdateDisasmDialog();
|
void UpdateDisasmDialog();
|
||||||
void NotifyMapLoaded();
|
void NotifyMapLoaded();
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
#include <QProgressDialog>
|
|
||||||
#include <QStackedWidget>
|
#include <QStackedWidget>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QWindow>
|
#include <QWindow>
|
||||||
@ -616,8 +615,6 @@ void MainWindow::ConnectRenderWidget()
|
|||||||
|
|
||||||
void MainWindow::ConnectHost()
|
void MainWindow::ConnectHost()
|
||||||
{
|
{
|
||||||
connect(Host::GetInstance(), &Host::UpdateProgressDialog, this,
|
|
||||||
&MainWindow::OnUpdateProgressDialog);
|
|
||||||
connect(Host::GetInstance(), &Host::RequestStop, this, &MainWindow::RequestStop);
|
connect(Host::GetInstance(), &Host::RequestStop, this, &MainWindow::RequestStop);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1702,28 +1699,6 @@ void MainWindow::ShowCheatsManager()
|
|||||||
m_cheats_manager->show();
|
m_cheats_manager->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::OnUpdateProgressDialog(QString title, int progress, int total)
|
|
||||||
{
|
|
||||||
if (!m_progress_dialog)
|
|
||||||
{
|
|
||||||
m_progress_dialog = new QProgressDialog(m_render_widget, Qt::WindowTitleHint);
|
|
||||||
m_progress_dialog->show();
|
|
||||||
m_progress_dialog->setCancelButton(nullptr);
|
|
||||||
m_progress_dialog->setWindowTitle(tr("Dolphin"));
|
|
||||||
}
|
|
||||||
|
|
||||||
m_progress_dialog->setValue(progress);
|
|
||||||
m_progress_dialog->setLabelText(title);
|
|
||||||
m_progress_dialog->setMaximum(total);
|
|
||||||
|
|
||||||
if (total < 0 || progress >= total)
|
|
||||||
{
|
|
||||||
m_progress_dialog->hide();
|
|
||||||
m_progress_dialog->deleteLater();
|
|
||||||
m_progress_dialog = nullptr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::Show()
|
void MainWindow::Show()
|
||||||
{
|
{
|
||||||
if (!Settings::Instance().IsBatchModeEnabled())
|
if (!Settings::Instance().IsBatchModeEnabled())
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include <optional>
|
#include <optional>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class QProgressDialog;
|
|
||||||
class QStackedWidget;
|
class QStackedWidget;
|
||||||
class QString;
|
class QString;
|
||||||
|
|
||||||
@ -167,8 +166,6 @@ private:
|
|||||||
void OnSignal();
|
void OnSignal();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void OnUpdateProgressDialog(QString label, int progress, int total);
|
|
||||||
|
|
||||||
void OnPlayRecording();
|
void OnPlayRecording();
|
||||||
void OnStartRecording();
|
void OnStartRecording();
|
||||||
void OnStopRecording();
|
void OnStopRecording();
|
||||||
@ -193,7 +190,6 @@ private:
|
|||||||
std::unique_ptr<X11Utils::XRRConfiguration> m_xrr_config;
|
std::unique_ptr<X11Utils::XRRConfiguration> m_xrr_config;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QProgressDialog* m_progress_dialog = nullptr;
|
|
||||||
QStackedWidget* m_stack;
|
QStackedWidget* m_stack;
|
||||||
ToolBar* m_tool_bar;
|
ToolBar* m_tool_bar;
|
||||||
MenuBar* m_menu_bar;
|
MenuBar* m_menu_bar;
|
||||||
|
@ -45,9 +45,6 @@ bool Host_RendererIsFullscreen()
|
|||||||
void Host_YieldToUI()
|
void Host_YieldToUI()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void Host_UpdateProgressDialog(const char* caption, int position, int total)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
void Host_TitleChanged()
|
void Host_TitleChanged()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -46,9 +46,6 @@ bool Host_RendererIsFullscreen()
|
|||||||
void Host_YieldToUI()
|
void Host_YieldToUI()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void Host_UpdateProgressDialog(const char* caption, int position, int total)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
void Host_TitleChanged()
|
void Host_TitleChanged()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user