KShare/platformspecifics/mac/macbackend.cpp

20 lines
569 B
C++
Raw Normal View History

2017-05-13 11:03:46 +02:00
#include "macbackend.hpp"
#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
}
pid_t PlatformBackend::pid() {
return getpid();
}
bool PlatformBackend::filenameValid(QString name) {
return !name.contains('/');
}