summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMichael M <mchtly@gmail.com>2017-09-15 10:33:22 -0700
committerMichael M <mchtly@gmail.com>2017-09-15 10:35:38 -0700
commit6191f0452425b904d7e6100eb3bd824c11afeadf (patch)
tree463108f184328cfcabb4de20d7657ea22631f7f7 /Source
parent7cb8d6612c6df51073037b56ebc866f180aecd71 (diff)
Settings: register the Core::State type with Qt
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt2/Settings.cpp1
-rw-r--r--Source/Core/DolphinQt2/Settings.h2
2 files changed, 3 insertions, 0 deletions
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::State>();
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<NetPlayServer> m_server;
Settings();
};
+
+Q_DECLARE_METATYPE(Core::State);