mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01:00
Merge pull request #6062 from ligfx/fixqtcorestate
Settings: register the Core::State type with Qt
This commit is contained in:
commit
68baf7d8fc
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
Settings::Settings()
|
Settings::Settings()
|
||||||
{
|
{
|
||||||
|
qRegisterMetaType<Core::State>();
|
||||||
Core::SetOnStateChangedCallback(
|
Core::SetOnStateChangedCallback(
|
||||||
[this](Core::State new_state) { emit EmulationStateChanged(new_state); });
|
[this](Core::State new_state) { emit EmulationStateChanged(new_state); });
|
||||||
}
|
}
|
||||||
|
@ -96,3 +96,5 @@ private:
|
|||||||
std::unique_ptr<NetPlayServer> m_server;
|
std::unique_ptr<NetPlayServer> m_server;
|
||||||
Settings();
|
Settings();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(Core::State);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user