mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
avoid duplicating flags/types in qmetaobjectbuilder
upstream commits:
d30515104d
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
99c1ef0f89
commit
357110ccf6
1 changed files with 4 additions and 56 deletions
|
@ -41,6 +41,9 @@
|
|||
|
||||
#include "qmetaobjectbuilder_p.h"
|
||||
|
||||
#include "qobject_p.h"
|
||||
#include "qmetaobject_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
/*!
|
||||
|
@ -93,64 +96,9 @@ bool isVariantType(const char* type)
|
|||
return qvariant_nameToType(type) != 0;
|
||||
}
|
||||
|
||||
// copied from qmetaobject_p.h
|
||||
// do not touch without touching the moc as well
|
||||
enum PropertyFlags {
|
||||
Invalid = 0x00000000,
|
||||
Readable = 0x00000001,
|
||||
Writable = 0x00000002,
|
||||
Resettable = 0x00000004,
|
||||
EnumOrFlag = 0x00000008,
|
||||
StdCppSet = 0x00000100,
|
||||
// Override = 0x00000200,
|
||||
Constant = 0x00000400,
|
||||
Final = 0x00000800,
|
||||
Designable = 0x00001000,
|
||||
ResolveDesignable = 0x00002000,
|
||||
Scriptable = 0x00004000,
|
||||
ResolveScriptable = 0x00008000,
|
||||
Stored = 0x00010000,
|
||||
ResolveStored = 0x00020000,
|
||||
Editable = 0x00040000,
|
||||
ResolveEditable = 0x00080000,
|
||||
User = 0x00100000,
|
||||
ResolveUser = 0x00200000,
|
||||
Notify = 0x00400000,
|
||||
Revisioned = 0x00800000
|
||||
};
|
||||
|
||||
enum MethodFlags {
|
||||
AccessPrivate = 0x00,
|
||||
AccessProtected = 0x01,
|
||||
AccessPublic = 0x02,
|
||||
AccessMask = 0x03, //mask
|
||||
|
||||
MethodMethod = 0x00,
|
||||
MethodSignal = 0x04,
|
||||
MethodSlot = 0x08,
|
||||
MethodConstructor = 0x0c,
|
||||
MethodTypeMask = 0x0c,
|
||||
|
||||
MethodCloned = 0x10,
|
||||
MethodScriptable = 0x20,
|
||||
MethodRevisioned = 0x40
|
||||
};
|
||||
|
||||
struct QMetaObjectPrivate
|
||||
{
|
||||
int revision;
|
||||
int className;
|
||||
int classInfoCount, classInfoData;
|
||||
int methodCount, methodData;
|
||||
int propertyCount, propertyData;
|
||||
int enumeratorCount, enumeratorData;
|
||||
int constructorCount, constructorData;
|
||||
int flags;
|
||||
};
|
||||
|
||||
// copied from core's qmetaobject.cpp
|
||||
static inline const QMetaObjectPrivate *priv(const uint* data)
|
||||
{ return reinterpret_cast<const QMetaObjectPrivate*>(data); }
|
||||
// end of copied lines from qmetaobject.cpp
|
||||
|
||||
class QMetaMethodBuilderPrivate
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue