Remove dbus from Windows build

This commit is contained in:
lupoDharkael
2017-12-26 02:00:07 +01:00
parent fc9c576c1f
commit 77aa604127
7 changed files with 77 additions and 15 deletions

View File

@@ -22,15 +22,19 @@
#include <QGuiApplication>
#include <QApplication>
#include <QDesktopWidget>
#ifdef Q_OS_LINUX
#include <QDBusInterface>
#include <QDBusReply>
#endif
ScreenGrabber::ScreenGrabber(QObject *parent) : QObject(parent) {
}
QPixmap ScreenGrabber::grabEntireDesktop(bool &ok) {
ok = true; // revisit later
ok = true;
#ifdef Q_OS_LINUX
if(m_info.waylandDectected()) {
QPixmap res;
// handle screenshot based on DE
@@ -62,6 +66,8 @@ QPixmap ScreenGrabber::grabEntireDesktop(bool &ok) {
}
return res;
}
#endif
QRect geometry;
for (QScreen *const screen : QGuiApplication::screens()) {
geometry = geometry.united(screen->geometry());