From 37840b149039e0cfd7b47ecd630a5fab52ba4e10 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 17 Dec 2013 15:46:57 +0100 Subject: [PATCH] Add default screenForContainment implementation --- src/plasma/corona.cpp | 6 ++++++ src/plasma/corona.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/plasma/corona.cpp b/src/plasma/corona.cpp index c746c138d..eb69ac02f 100644 --- a/src/plasma/corona.cpp +++ b/src/plasma/corona.cpp @@ -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; diff --git a/src/plasma/corona.h b/src/plasma/corona.h index b96ec206d..cb4668b67 100644 --- a/src/plasma/corona.h +++ b/src/plasma/corona.h @@ -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: /**