Merge pull request #6877 from aldelaro5/qt-debugger-load-symbols
Qt/debugger: properly update when we load the symbols on boot
This commit is contained in:
commit
72a66d3fbb
|
@ -45,6 +45,8 @@ CodeWidget::CodeWidget(QWidget* parent) : QDockWidget(parent)
|
||||||
Update();
|
Update();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(Host::GetInstance(), &Host::NotifyMapLoaded, this, &CodeWidget::UpdateSymbols);
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::DebugModeToggled,
|
connect(&Settings::Instance(), &Settings::DebugModeToggled,
|
||||||
[this](bool enabled) { setHidden(!enabled || !Settings::Instance().IsCodeVisible()); });
|
[this](bool enabled) { setHidden(!enabled || !Settings::Instance().IsCodeVisible()); });
|
||||||
|
|
||||||
|
|
|
@ -121,6 +121,16 @@ void Host_UpdateProgressDialog(const char* caption, int position, int total)
|
||||||
emit Host::GetInstance()->UpdateProgressDialog(QString::fromUtf8(caption), position, total);
|
emit Host::GetInstance()->UpdateProgressDialog(QString::fromUtf8(caption), position, total);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Host::RequestNotifyMapLoaded()
|
||||||
|
{
|
||||||
|
QueueOnObject(QApplication::instance(), [this] { emit NotifyMapLoaded(); });
|
||||||
|
}
|
||||||
|
|
||||||
|
void Host_NotifyMapLoaded()
|
||||||
|
{
|
||||||
|
Host::GetInstance()->RequestNotifyMapLoaded();
|
||||||
|
}
|
||||||
|
|
||||||
// We ignore these, and their purpose should be questioned individually.
|
// We ignore these, and their purpose should be questioned individually.
|
||||||
// In particular, RequestRenderWindowSize, RequestFullscreen, and
|
// In particular, RequestRenderWindowSize, RequestFullscreen, and
|
||||||
// UpdateMainFrame should almost certainly be removed.
|
// UpdateMainFrame should almost certainly be removed.
|
||||||
|
@ -137,9 +147,6 @@ bool Host_UINeedsControllerState()
|
||||||
{
|
{
|
||||||
return Settings::Instance().IsControllerStateNeeded();
|
return Settings::Instance().IsControllerStateNeeded();
|
||||||
}
|
}
|
||||||
void Host_NotifyMapLoaded()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
void Host_ShowVideoConfig(void* parent, const std::string& backend_name)
|
void Host_ShowVideoConfig(void* parent, const std::string& backend_name)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,7 @@ public:
|
||||||
void SetRenderFocus(bool focus);
|
void SetRenderFocus(bool focus);
|
||||||
void SetRenderFullscreen(bool fullscreen);
|
void SetRenderFullscreen(bool fullscreen);
|
||||||
void ResizeSurface(int new_width, int new_height);
|
void ResizeSurface(int new_width, int new_height);
|
||||||
|
void RequestNotifyMapLoaded();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void RequestTitle(const QString& title);
|
void RequestTitle(const QString& title);
|
||||||
|
@ -34,6 +35,7 @@ signals:
|
||||||
void RequestRenderSize(int w, int h);
|
void RequestRenderSize(int w, int h);
|
||||||
void UpdateProgressDialog(QString label, int position, int maximum);
|
void UpdateProgressDialog(QString label, int position, int maximum);
|
||||||
void UpdateDisasmDialog();
|
void UpdateDisasmDialog();
|
||||||
|
void NotifyMapLoaded();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Host();
|
Host();
|
||||||
|
|
Loading…
Reference in New Issue