Use defined(Q_OS_LINUX) || defined(Q_OS_UNIX) where applicable to support BSD OSs. (#264)

This commit is contained in:
Danilo Egêa Gondolfo
2018-07-01 08:45:49 -03:00
committed by Dharkael
parent c75c9aa7f8
commit df3958e43a
8 changed files with 13 additions and 13 deletions

View File

@@ -24,7 +24,7 @@
#include <QApplication>
#include <QDesktopWidget>
#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
#include <QDBusInterface>
#include <QDBusReply>
#include <QDir>
@@ -36,7 +36,7 @@ ScreenGrabber::ScreenGrabber(QObject *parent) : QObject(parent) {
QPixmap ScreenGrabber::grabEntireDesktop(bool &ok) {
ok = true;
#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
if(m_info.waylandDectected()) {
QPixmap res;
// handle screenshot based on DE