refs #304, refs #307, refs #173 as preparation for GUI, name / variant pair

* for a generic table and tree view
* generic name pair models and view
* Hash for variant
This commit is contained in:
Klaus Basan
2014-07-27 03:00:13 +02:00
parent 8c94f9b479
commit 8a5a268a77
11 changed files with 710 additions and 6 deletions

View File

@@ -12,6 +12,7 @@
#include "settingsblackmiscclasses.h"
#include "hwallclasses.h"
#include "indexvariantmap.h"
#include "namevariantpairlist.h"
#include "variant.h"
#include "statusmessagelist.h"
#include "audioallclasses.h"
@@ -144,6 +145,8 @@ void BlackMisc::registerMetadata()
{
CVariant::registerMetadata();
CIndexVariantMap::registerMetadata();
CNameVariantPair::registerMetadata();
CNameVariantPairList::registerMetadata();
CStatusMessage::registerMetadata();
CStatusMessageList::registerMetadata();
@@ -387,7 +390,6 @@ QVariant BlackMisc::complexQtTypeFromDbusArgument(const QDBusArgument &argument,
*/
size_t BlackMisc::heapSizeOf(const QMetaType &metaType)
{
metaType.destroy(metaType.create()); // ignore one-off allocations of a class being instantiated for the first time
_CrtMemState oldState, newState, diff;
oldState.lTotalCount = newState.lTotalCount = diff.lTotalCount = 0; // avoid compiler warning