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.
This commit is contained in:
Aleix Pol 2014-06-05 01:25:18 +02:00
parent 7ea8e24584
commit a06c1569a1
2 changed files with 1 additions and 9 deletions

View File

@ -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));

View File

@ -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.