83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
@end
namespace ObjQt {
static OF_INLINE QtObject *
toOF(QObject *qObject)
{
return [[[QtObject alloc] initWithQObject: qObject] autorelease];
}
static OF_INLINE QObject *
toQt(QtObject *object)
{
return [object qObject];
|
>
>
>
|
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
@end
namespace ObjQt {
static OF_INLINE QtObject *
toOF(QObject *qObject)
{
if (qObject == NULL)
return nil;
return [[[QtObject alloc] initWithQObject: qObject] autorelease];
}
static OF_INLINE QObject *
toQt(QtObject *object)
{
return [object qObject];
|