Add default screenForContainment implementation

This commit is contained in:
David Edmundson 2013-12-17 15:46:57 +01:00
parent 36e4a45377
commit 37840b1490
2 changed files with 7 additions and 1 deletions

View File

@ -198,6 +198,12 @@ Containment *Corona::createContainment(const QString &name, const QVariantList &
return 0;
}
int Corona::screenForContainment(const Containment* containment) const
{
return -1;
}
int Corona::numScreens() const
{
return 1;

View File

@ -161,7 +161,7 @@ public:
* @returns the id of the screen which is showing @p containment
* -1 is returned if the containment is not associated with a screen.
*/
virtual int screenForContainment(const Containment *containment) const = 0;
virtual int screenForContainment(const Containment *containment) const;
public Q_SLOTS:
/**