deleted unneeded helper

master
Rachel Fae Fox (foxiepaws) 2020-02-20 03:54:08 -05:00
parent 4e9d606d3c
commit 334fafe354
2 changed files with 0 additions and 21 deletions

View File

@ -1,10 +0,0 @@
#ifdef __APPLE__
#ifndef MACOS_URLHELPER_H
#define MACOS_URLHELPER_H
#include <QUrl>
QUrl fromNSUrl(const QUrl &url);
#endif // MACOS_URLHELPER_H
#endif

View File

@ -1,11 +0,0 @@
#ifdef __APPLE__
#include "macos_urlhelper.h"
#include <Foundation/Foundation.h>
QUrl fromNSUrl(const QUrl &url) {
NSURL *nsUrl = url.toNSURL();
NSString *path = nsUrl.path;
QString qtString = QString::fromNSString(path);
return QUrl::fromLocalFile(qtString);
}
#endif