diff --git a/src/plasma/corona.h b/src/plasma/corona.h --- a/src/plasma/corona.h +++ b/src/plasma/corona.h @@ -218,6 +218,14 @@ */ virtual int screenForContainment(const Containment *containment) const; + /** + * @return the id of the screen for a specified name + * -1 is returned there if there is no such screen. + * @since 5.40 + */ + virtual int screenIdForName(const QString &name) const; + + public Q_SLOTS: /** * Load applet layout from a config file. The results will be added to the diff --git a/src/plasma/corona.cpp b/src/plasma/corona.cpp --- a/src/plasma/corona.cpp +++ b/src/plasma/corona.cpp @@ -267,6 +267,11 @@ return -1; } +int Corona::screenIdForName(const QString &name) const +{ + return -1; +} + int Corona::numScreens() const { return 1;