Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qmetaobject_p.h File Reference

(5a0faa9198c6ae6e21a550159c4284d1a9c5792e)

#include <QtCore/qglobal.h>
#include <QtCore/qobjectdefs.h>
#include <QtCore/qmutex.h>
#include <QtCore/qmetaobject.h>
#include <private/qobject_p.h>
#include <private/qtools_p.h>
#include <QtCore/qvarlengtharray.h>
+ Include dependency graph for qmetaobject_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QArgumentType
 
class  QMetaMethodInvoker
 
struct  QMetaObjectPrivate
 

Typedefs

typedef QVarLengthArray< QArgumentType, 10 > QArgumentTypeArray
 

Enumerations

enum  PropertyFlags {
  Invalid = 0x00000000 , Readable = 0x00000001 , Writable = 0x00000002 , Resettable = 0x00000004 ,
  EnumOrFlag = 0x00000008 , Alias = 0x00000010 , StdCppSet = 0x00000100 , Constant = 0x00000400 ,
  Final = 0x00000800 , Designable = 0x00001000 , Scriptable = 0x00004000 , Stored = 0x00010000 ,
  User = 0x00100000 , Required = 0x01000000 , Bindable = 0x02000000
}
 
enum  MethodFlags {
  AccessPrivate = 0x00 , AccessProtected = 0x01 , AccessPublic = 0x02 , AccessMask = 0x03 ,
  MethodMethod = 0x00 , MethodSignal = 0x04 , MethodSlot = 0x08 , MethodConstructor = 0x0c ,
  MethodTypeMask = 0x0c , MethodCompatibility = 0x10 , MethodCloned = 0x20 , MethodScriptable = 0x40 ,
  MethodRevisioned = 0x80 , MethodIsConst = 0x100
}
 
enum  MetaObjectFlag { DynamicMetaObject = 0x01 , RequiresVariantMetaObject = 0x02 , PropertyAccessInStaticMetaCall = 0x04 }
 
enum  MetaDataFlags { IsUnresolvedType = 0x80000000 , TypeNameIndexMask = 0x7FFFFFFF , IsUnresolvedSignal = 0x70000000 }
 
enum  EnumFlags { EnumIsFlag = 0x1 , EnumIsScoped = 0x2 }
 
enum  { MetaObjectPrivateFieldCount = sizeof(QMetaObjectPrivate) / sizeof(int) }
 

Functions

Q_CORE_EXPORT int qMetaTypeTypeInternal (const char *)
 
 Q_DECLARE_TYPEINFO (QArgumentType, Q_RELOCATABLE_TYPE)
 
static bool is_ident_char (char s)
 
static bool is_space (char s)
 

Typedef Documentation

◆ QArgumentTypeArray

Definition at line 131 of file qmetaobject_p.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MetaObjectPrivateFieldCount 

Definition at line 267 of file qmetaobject_p.h.

◆ EnumFlags

enum EnumFlags
Enumerator
EnumIsFlag 
EnumIsScoped 

Definition at line 87 of file qmetaobject_p.h.

◆ MetaDataFlags

Enumerator
IsUnresolvedType 
TypeNameIndexMask 
IsUnresolvedSignal 

Definition at line 81 of file qmetaobject_p.h.

◆ MetaObjectFlag

Enumerator
DynamicMetaObject 
RequiresVariantMetaObject 
PropertyAccessInStaticMetaCall 

Definition at line 73 of file qmetaobject_p.h.

◆ MethodFlags

Enumerator
AccessPrivate 
AccessProtected 
AccessPublic 
AccessMask 
MethodMethod 
MethodSignal 
MethodSlot 
MethodConstructor 
MethodTypeMask 
MethodCompatibility 
MethodCloned 
MethodScriptable 
MethodRevisioned 
MethodIsConst 

Definition at line 53 of file qmetaobject_p.h.

◆ PropertyFlags

Enumerator
Invalid 
Readable 
Writable 
Resettable 
EnumOrFlag 
Alias 
StdCppSet 
Constant 
Final 
Designable 
Scriptable 
Stored 
User 
Required 
Bindable 

Definition at line 34 of file qmetaobject_p.h.

Function Documentation

◆ is_ident_char()

static bool is_ident_char ( char s)
inlinestatic

Definition at line 271 of file qmetaobject_p.h.

References QtMiscUtils::isAsciiLetterOrNumber().

Referenced by Moc::lexemUntil(), QtPrivate::QTypeNormalizer::normalizeType(), qRemoveWhitespace(), and Preprocessor::tokenize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_space()

static bool is_space ( char s)
inlinestatic

Definition at line 276 of file qmetaobject_p.h.

Referenced by cleaned(), QtPrivate::QTypeNormalizer::normalizeType(), and qRemoveWhitespace().

+ Here is the caller graph for this function:

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QArgumentType ,
Q_RELOCATABLE_TYPE  )

◆ qMetaTypeTypeInternal()

Q_CORE_EXPORT int qMetaTypeTypeInternal ( const char * typeName)

Similar to QMetaType::type(); the only difference is that this function doesn't attempt to normalize the type name (i.e., the lookup will fail for type names in non-normalized form).

Definition at line 2868 of file qmetatype.cpp.

Referenced by isBuiltinType(), and nameToBuiltinType().

+ Here is the caller graph for this function: