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:
parent
7ea8e24584
commit
a06c1569a1
@ -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));
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user