Utils: Register Key/Store related metatypes

Change-Id: If7b0a83febfeb2cb3cfc9ee42b8423453cf3b1c4
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-08-29 09:36:06 +02:00
parent 4c81af8c0a
commit e5afe02556
2 changed files with 9 additions and 0 deletions

View File

@@ -28,3 +28,7 @@ QTCREATOR_UTILS_EXPORT Store storeFromMap(const QVariantMap &map);
QTCREATOR_UTILS_EXPORT QVariantMap mapFromStore(const Store &store);
} // Utils
#ifdef QTC_USE_STORE
Q_DECLARE_METATYPE(Utils::Store)
#endif

View File

@@ -26,6 +26,7 @@
#include <extensionsystem/pluginerroroverview.h>
#include <extensionsystem/pluginmanager.h>
#include <extensionsystem/pluginspec.h>
#include <utils/algorithm.h>
#include <utils/checkablemessagebox.h>
#include <utils/commandline.h>
@@ -34,6 +35,7 @@
#include <utils/mimeutils.h>
#include <utils/pathchooser.h>
#include <utils/savefile.h>
#include <utils/store.h>
#include <utils/stringutils.h>
#include <utils/textutils.h>
#include <utils/theme/theme.h>
@@ -76,6 +78,9 @@ CorePlugin::CorePlugin()
qRegisterMetaType<Utils::CommandLine>();
qRegisterMetaType<Utils::FilePath>();
qRegisterMetaType<Utils::Environment>();
qRegisterMetaType<Utils::Store>();
qRegisterMetaType<Utils::Key>();
qRegisterMetaType<Utils::KeyList>();
m_instance = this;
setupSystemEnvironment();
}