1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
+
+
-
+
-
+
|
#import <ObjFW/ObjFW.h>
#include <QString>
#include <QSize>
#include <QRect>
#import "OFString+QString.h"
static OF_INLINE OFString*
toOF(const QString &qString)
{
return [OFString stringWithUTF8String: qString.toUtf8()];
return [OFString stringWithQString: qString];
}
static OF_INLINE QString
toQt(OFString *string)
{
return QString::fromUtf8([string UTF8String]);
return [string qString];
}
static OF_INLINE of_point_t
toOF(const QPoint &qPoint)
{
return of_point(qPoint.x(), qPoint.y());
}
|