Formatting
This commit is contained in:
@@ -27,10 +27,10 @@ THE SOFTWARE.
|
||||
#include <QImage>
|
||||
#include <QPixmap>
|
||||
|
||||
static inline NSString* fromQString(const QString &string) {
|
||||
static inline NSString *fromQString(const QString &string) {
|
||||
|
||||
const QByteArray utf8 = string.toUtf8();
|
||||
const char* cString = utf8.constData();
|
||||
const char *cString = utf8.constData();
|
||||
return [ [NSString alloc] initWithUTF8String:cString];
|
||||
|
||||
}
|
||||
@@ -42,7 +42,7 @@ static inline QString toQString(NSString *string) {
|
||||
|
||||
}
|
||||
|
||||
static inline NSImage* fromQPixmap(const QPixmap &pixmap) {
|
||||
static inline NSImage *fromQPixmap(const QPixmap &pixmap) {
|
||||
|
||||
QImage image = pixmap.toImage();
|
||||
CGImageRef cgImage = image.toCGImage();
|
||||
|
||||
Reference in New Issue
Block a user