Merge pull request #6062 from ligfx/fixqtcorestate

Settings: register the Core::State type with Qt
This commit is contained in:
Leo Lam 2017-09-15 22:38:42 +02:00 committed by GitHub
commit 68baf7d8fc
2 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@
Settings::Settings()
{
qRegisterMetaType<Core::State>();
Core::SetOnStateChangedCallback(
[this](Core::State new_state) { emit EmulationStateChanged(new_state); });
}

View File

@ -96,3 +96,5 @@ private:
std::unique_ptr<NetPlayServer> m_server;
Settings();
};
Q_DECLARE_METATYPE(Core::State);