From a06c1569a12b63cbf8e16e59632f76c581425cf8 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 5 Jun 2014 01:25:18 +0200 Subject: [PATCH] The screen size will be defined by the final Corona It doesn't make sense to try to give hints at what it will be given that we don't know. For example, see how we're defining ::numScreens as 1 on the other method as well. --- src/plasma/corona.cpp | 8 -------- src/plasma/corona.h | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/plasma/corona.cpp b/src/plasma/corona.cpp index ea520a739..150a92625 100644 --- a/src/plasma/corona.cpp +++ b/src/plasma/corona.cpp @@ -224,14 +224,6 @@ int Corona::numScreens() const return 1; } -QRect Corona::screenGeometry(int id) const -{ - if (QGuiApplication::screens().size() >= id) { - QGuiApplication::screens().at(id)->geometry(); - } - return QRect(); -} - QRegion Corona::availableScreenRegion(int id) const { return QRegion(screenGeometry(id)); diff --git a/src/plasma/corona.h b/src/plasma/corona.h index ab926c7fd..baa9ee939 100644 --- a/src/plasma/corona.h +++ b/src/plasma/corona.h @@ -118,7 +118,7 @@ public: * Subclasses should override this method as the default * implementation returns a meaningless value. */ - virtual QRect screenGeometry(int id) const; + virtual QRect screenGeometry(int id) const = 0; /** * Returns the available region for a given screen.