Skip to content
Permalink
Browse files
Merge pull request #6062 from ligfx/fixqtcorestate
Settings: register the Core::State type with Qt
  • Loading branch information
leoetlino committed Sep 15, 2017
2 parents 93574bf + 6191f04 commit 68baf7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
@@ -18,6 +18,7 @@

Settings::Settings()
{
qRegisterMetaType<Core::State>();
Core::SetOnStateChangedCallback(
[this](Core::State new_state) { emit EmulationStateChanged(new_state); });
}
@@ -96,3 +96,5 @@ class Settings final : public QObject
std::unique_ptr<NetPlayServer> m_server;
Settings();
};

Q_DECLARE_METATYPE(Core::State);

0 comments on commit 68baf7d

Please sign in to comment.