Add OFString (QString)
This commit is contained in:
parent
53410c810f
commit
daa49494d4
4 changed files with 46 additions and 3 deletions
|
@ -4,16 +4,18 @@
|
|||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue