27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using ObjQt::toQt;
@implementation QtPaintDevice
@dynamic qObject;
- (QPaintDevice *)qPaintDevice
{
return dynamic_cast<QPaintDevice *>([self qObject]);
}
- (int)colorCount
{
return toQt(self)->colorCount();
}
|
|
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using ObjQt::toQt;
@implementation QtPaintDevice
@dynamic qObject;
- (QPaintDevice *)qPaintDevice
{
return dynamic_cast<QPaintDevice *>(self.qObject);
}
- (int)colorCount
{
return toQt(self)->colorCount();
}
|