mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
refs #116 removed firstBlackMetaType as it is no longer needed
This commit is contained in:
@@ -131,10 +131,7 @@ void BlackMisc::Hardware::registerMetadata()
|
|||||||
*/
|
*/
|
||||||
void BlackMisc::registerMetadata()
|
void BlackMisc::registerMetadata()
|
||||||
{
|
{
|
||||||
CVariant::registerMetadata(); // before the others because it's not a CValueObject
|
CVariant::registerMetadata();
|
||||||
|
|
||||||
// !! make sure the first valueobject id is correctly returned by
|
|
||||||
// !! firstBlackMetaType
|
|
||||||
CIndexVariantMap::registerMetadata();
|
CIndexVariantMap::registerMetadata();
|
||||||
|
|
||||||
CStatusMessage::registerMetadata();
|
CStatusMessage::registerMetadata();
|
||||||
@@ -151,15 +148,6 @@ void BlackMisc::registerMetadata()
|
|||||||
Hardware::registerMetadata();
|
Hardware::registerMetadata();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* First of our ids
|
|
||||||
*/
|
|
||||||
int BlackMisc::firstBlackMetaType()
|
|
||||||
{
|
|
||||||
// must be the first registered above
|
|
||||||
return qMetaTypeId<CIndexVariantMap>();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Init resources
|
* Init resources
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -83,20 +83,6 @@ namespace BlackMisc
|
|||||||
//! Register all relevant metadata in BlackMisc
|
//! Register all relevant metadata in BlackMisc
|
||||||
void registerMetadata();
|
void registerMetadata();
|
||||||
|
|
||||||
/*!
|
|
||||||
* Deals with the issue, that the BlackMisc metatypes do not always start with
|
|
||||||
* the same id, but dependent on enabled Qt modules. E.g. with GUI enabled:
|
|
||||||
* type: 1024 name: QPaintBufferCacheEntry
|
|
||||||
* type: 1025 .... some classes I cannot foresee
|
|
||||||
* type: 1027 name: BlackMisc::CValueMap
|
|
||||||
*
|
|
||||||
* This is important when marshalling Variants via DBus among different
|
|
||||||
* binaries, as an offset has to be considered
|
|
||||||
*
|
|
||||||
* \return
|
|
||||||
*/
|
|
||||||
int firstBlackMetaType();
|
|
||||||
|
|
||||||
//! Init resources
|
//! Init resources
|
||||||
void initResources();
|
void initResources();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user