mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
46 lines
1.7 KiB
C++
46 lines
1.7 KiB
C++
/* Copyright (C) 2015
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
|
* or distributed except according to the terms contained in the LICENSE file.
|
|
*/
|
|
|
|
#include "blackmisc/input/registermetadatainput.h"
|
|
#include "blackmisc/input/input.h"
|
|
#include "blackmisc/variant.h"
|
|
|
|
#include <QDBusMetaType>
|
|
|
|
namespace BlackMisc
|
|
{
|
|
namespace Input
|
|
{
|
|
void registerMetadata()
|
|
{
|
|
CActionHotkey::registerMetadata();
|
|
CActionHotkeyList::registerMetadata();
|
|
CHotkeyCombination::registerMetadata();
|
|
CJoystickButton::registerMetadata();
|
|
CJoystickButtonList::registerMetadata();
|
|
CKeyboardKey::registerMetadata();
|
|
CKeyboardKeyList::registerMetadata();
|
|
qDBusRegisterMetaType<KeyCode>();
|
|
qRegisterMetaTypeStreamOperators<KeyCode>();
|
|
}
|
|
}
|
|
|
|
#if defined(Q_OS_WIN) && defined(Q_CC_CLANG)
|
|
namespace Private
|
|
{
|
|
template void maybeRegisterMetaListConvert<Input::CActionHotkeyList>(int);
|
|
template void maybeRegisterMetaListConvert<Input::CJoystickButtonList>(int);
|
|
template void maybeRegisterMetaListConvert<Input::CKeyboardKeyList>(int);
|
|
template void maybeRegisterMetaListConvert<CSequence<Input::CActionHotkey>>(int);
|
|
template void maybeRegisterMetaListConvert<CSequence<Input::CJoystickButton>>(int);
|
|
template void maybeRegisterMetaListConvert<CSequence<Input::CKeyboardKey>>(int);
|
|
} // ns
|
|
#endif
|
|
|
|
} // ns
|