From 6191f0452425b904d7e6100eb3bd824c11afeadf Mon Sep 17 00:00:00 2001 From: Michael M Date: Fri, 15 Sep 2017 10:33:22 -0700 Subject: [PATCH] Settings: register the Core::State type with Qt --- Source/Core/DolphinQt2/Settings.cpp | 1 + Source/Core/DolphinQt2/Settings.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Source/Core/DolphinQt2/Settings.cpp b/Source/Core/DolphinQt2/Settings.cpp index fbc283c267..aa06f0a020 100644 --- a/Source/Core/DolphinQt2/Settings.cpp +++ b/Source/Core/DolphinQt2/Settings.cpp @@ -18,6 +18,7 @@ Settings::Settings() { + qRegisterMetaType(); Core::SetOnStateChangedCallback( [this](Core::State new_state) { emit EmulationStateChanged(new_state); }); } diff --git a/Source/Core/DolphinQt2/Settings.h b/Source/Core/DolphinQt2/Settings.h index 4de0b88be6..4ed5f4021b 100644 --- a/Source/Core/DolphinQt2/Settings.h +++ b/Source/Core/DolphinQt2/Settings.h @@ -96,3 +96,5 @@ private: std::unique_ptr m_server; Settings(); }; + +Q_DECLARE_METATYPE(Core::State);