mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #139 added registration for CKeyboardKey et.al.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "geoallclasses.h"
|
||||
#include "networkallclasses.h"
|
||||
#include "settingsallclasses.h"
|
||||
#include "hwallclasses.h"
|
||||
#include "valuemap.h"
|
||||
#include "statusmessagelist.h"
|
||||
#include "voiceallclasses.h"
|
||||
@@ -110,6 +111,15 @@ void BlackMisc::Voice::registerMetadata()
|
||||
CVoiceRoomList::registerMetadata();
|
||||
}
|
||||
|
||||
/*
|
||||
* Metadata for Hardware
|
||||
*/
|
||||
void BlackMisc::Hardware::registerMetadata()
|
||||
{
|
||||
CKeyboardKey::registerMetadata();
|
||||
CKeyboardKeyList::registerMetadata();
|
||||
}
|
||||
|
||||
/*
|
||||
* Metadata for Blackmisc
|
||||
*/
|
||||
@@ -130,6 +140,7 @@ void BlackMisc::registerMetadata()
|
||||
Network::registerMetadata();
|
||||
Settings::registerMetadata();
|
||||
Voice::registerMetadata();
|
||||
Hardware::registerMetadata();
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -184,6 +195,7 @@ int BlackMisc:: compareQVariants(const QVariant &v1, const QVariant &v2)
|
||||
switch (v1.type())
|
||||
{
|
||||
case QMetaType::QString:
|
||||
case QMetaType::QChar:
|
||||
{
|
||||
QString s1 = v1.value<QString>();
|
||||
QString s2 = v2.value<QString>();
|
||||
|
||||
@@ -90,7 +90,15 @@ namespace BlackMisc
|
||||
namespace Voice
|
||||
{
|
||||
/*!
|
||||
* \brief Registe metadata for settings
|
||||
* \brief Register metadata for voice
|
||||
*/
|
||||
void registerMetadata();
|
||||
}
|
||||
|
||||
namespace Hardware
|
||||
{
|
||||
/*!
|
||||
* \brief Register metadata for Hardware
|
||||
*/
|
||||
void registerMetadata();
|
||||
}
|
||||
|
||||
11
src/blackmisc/hwallclasses.h
Normal file
11
src/blackmisc/hwallclasses.h
Normal file
@@ -0,0 +1,11 @@
|
||||
/* Copyright (C) 2013 VATSIM Community / contributors
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef BLACKMISC_HWALLCLASSES_H
|
||||
#define BLACKMISC_HWALLCLASSES_H
|
||||
|
||||
#include "blackmisc/hwkeyboardkeylist.h"
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user