2017-05-13 11:03:46 +02:00
|
|
|
#include "macbackend.hpp"
|
|
|
|
|
2017-07-09 14:23:52 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
std::tuple<QPoint, QPixmap> PlatformBackend::getCursor() {
|
2017-05-13 11:03:46 +02:00
|
|
|
#warning "TODO: Mac backend"
|
2017-05-13 23:33:36 +02:00
|
|
|
return std::tuple<QPoint, QPixmap>(QPoint(0, 0), QPixmap());
|
2017-05-17 13:42:01 +02:00
|
|
|
// Not Monday: https://developer.apple.com/reference/appkit/nscursor/1527062-image
|
2017-05-13 23:49:16 +02:00
|
|
|
// Some on how to do NSImage -> QPixmap: http://stackoverflow.com/a/2468961/3809164
|
|
|
|
// This is gonna be easier than with Windows
|
2017-05-13 11:03:46 +02:00
|
|
|
}
|
2017-06-06 01:26:26 +02:00
|
|
|
|
|
|
|
pid_t PlatformBackend::pid() {
|
|
|
|
return getpid();
|
|
|
|
}
|
2017-07-05 12:05:55 +02:00
|
|
|
|
|
|
|
bool PlatformBackend::filenameValid(QString name) {
|
|
|
|
return !name.contains('/');
|
|
|
|
}
|