forked from qt-creator/qt-creator
Utils: Register Key/Store related metatypes
Change-Id: If7b0a83febfeb2cb3cfc9ee42b8423453cf3b1c4 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -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
|
||||
|
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user