21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
-
+
-
+
|
*/
#import "QtThread.h"
using ObjQt::toQt;
@implementation QtThread: QtObject
- initWithQObject: (QObject *)qObject
- (instancetype)initWithQObject: (QObject *)qObject
{
OF_INVALID_INIT_METHOD
}
- initWithQThread: (QThread *)qThread
- (instancetype)initWithQThread: (QThread *)qThread
{
return [super initWithQObject: qThread];
}
- (QThread *)qThread
{
return qobject_cast<QThread *>(_qObject);
|