From e8297e9a0f7644c2b3c27c2e5c7321615f709f7a Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 4 Jun 2014 18:55:05 +0200 Subject: [PATCH] QDesktopWidget -> QScreen --- src/plasma/corona.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plasma/corona.cpp b/src/plasma/corona.cpp index b811a494c..ea520a739 100644 --- a/src/plasma/corona.cpp +++ b/src/plasma/corona.cpp @@ -23,11 +23,12 @@ #include "corona.h" #include "private/corona_p.h" -#include -#include +#include #include #include #include +#include +#include #include @@ -225,7 +226,10 @@ int Corona::numScreens() const QRect Corona::screenGeometry(int id) const { - return qApp->desktop()->screenGeometry(id); + if (QGuiApplication::screens().size() >= id) { + QGuiApplication::screens().at(id)->geometry(); + } + return QRect(); } QRegion Corona::availableScreenRegion(int id) const