Files
pilotclient/src/blackmisc/input/registermetadatainput.cpp
Mat Sutcliffe a592bb2bbe Include style
2021-09-18 15:07:49 +01:00

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