mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 21:05:34 +08:00
Util. function for class name
This commit is contained in:
committed by
Mat Sutcliffe
parent
5987e58043
commit
c1622951b3
@@ -13,11 +13,12 @@
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <QString>
|
||||
#include <stddef.h>
|
||||
|
||||
class QMetaType;
|
||||
class QTextStream;
|
||||
class QObject;
|
||||
struct QMetaObject;
|
||||
|
||||
//! Metadata util functions
|
||||
@@ -36,6 +37,12 @@ namespace BlackMisc
|
||||
//! Real heap size of an object
|
||||
BLACKMISC_EXPORT size_t heapSizeOf(const QMetaObject &objectType);
|
||||
|
||||
//! Class name as from QMetaObject::className with namespace
|
||||
BLACKMISC_EXPORT QString className(const QObject *object);
|
||||
|
||||
//! Class name as from QMetaObject::className without namespace
|
||||
BLACKMISC_EXPORT QString classNameShort(const QObject *object);
|
||||
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user