ObjQt  Diff

Differences From Artifact [0274ca44b6]:

To Artifact [5d9835a3dd]:


225
226
227
228
229
230
231



232
233
234
235
236
237
238
@end

namespace ObjQt {

static OF_INLINE QtWidget *
toOF(QWidget *qWidget)
{



	return [[[QtWidget alloc] initWithQWidget: qWidget] autorelease];
}

static OF_INLINE QWidget *
toQt(QtWidget *widget)
{
	return [widget qWidget];







>
>
>







225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
@end

namespace ObjQt {

static OF_INLINE QtWidget *
toOF(QWidget *qWidget)
{
	if (qWidget == NULL)
		return nil;

	return [[[QtWidget alloc] initWithQWidget: qWidget] autorelease];
}

static OF_INLINE QWidget *
toQt(QtWidget *widget)
{
	return [widget qWidget];