ObjQt  Diff

Differences From Artifact [7722808b16]:

To Artifact [16048af6f6]:


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

#import "helpers.h"

using ObjQt::toOF;
using ObjQt::toQt;

@implementation QtAbstractButton
- initWithQWidget: (QWidget*)qWidget
{
	OF_INVALID_INIT_METHOD
}

- initWithQAbstractButton: (QAbstractButton*)qAbstractButton
{
	return [super initWithQWidget: qAbstractButton];
}

- (QAbstractButton*)qAbstractButton
{
	return qobject_cast<QAbstractButton*>(_qObject);
}

- (bool)autoExclusive
{
	return toQt(self)->autoExclusive();
}








|




|




|

|







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

#import "helpers.h"

using ObjQt::toOF;
using ObjQt::toQt;

@implementation QtAbstractButton
- initWithQWidget: (QWidget *)qWidget
{
	OF_INVALID_INIT_METHOD
}

- initWithQAbstractButton: (QAbstractButton *)qAbstractButton
{
	return [super initWithQWidget: qAbstractButton];
}

- (QAbstractButton *)qAbstractButton
{
	return qobject_cast<QAbstractButton *>(_qObject);
}

- (bool)autoExclusive
{
	return toQt(self)->autoExclusive();
}

140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
}

- (void)setShortcut: (QKeySequence)shortcut
{
	toQt(self)->setShortcut(shortcut);
}

- (OFString*)text
{
	return toOF(toQt(self)->text());
}

- (void)setText: (OFString*)text
{
	toQt(self)->setText(toQt(text));
}

- (QButtonGroup*)group
{
	return toQt(self)->group();
}
@end







|




|




|




140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
}

- (void)setShortcut: (QKeySequence)shortcut
{
	toQt(self)->setShortcut(shortcut);
}

- (OFString *)text
{
	return toOF(toQt(self)->text());
}

- (void)setText: (OFString *)text
{
	toQt(self)->setText(toQt(text));
}

- (QButtonGroup *)group
{
	return toQt(self)->group();
}
@end