Port away from deprecated Corona::containmentForScreen overload

By passing in empty strings the values are ignored. As the docs
state, the methods can not use default arguments because of ambiguous
function calls
wilder-5.24
Alexander Lohnau 4 years ago
parent df1f4a3fbd
commit c5d9e0b66e
  1. 6
      applets/kicker/plugin/containmentinterface.cpp

@ -50,7 +50,7 @@ bool ContainmentInterface::mayAddLauncher(QObject *appletInterface, ContainmentI
switch (target) {
case Desktop: {
containment = corona->containmentForScreen(containment->screen());
containment = corona->containmentForScreen(containment->screen(), QString(), QString());
if (containment) {
return (containment->immutability() == Plasma::Types::Mutable);
@ -122,7 +122,7 @@ void ContainmentInterface::addLauncher(QObject *appletInterface, ContainmentInte
switch (target) {
case Desktop: {
containment = corona->containmentForScreen(containment->screen());
containment = corona->containmentForScreen(containment->screen(), QString(), QString());
if (!containment) {
return;
@ -212,7 +212,7 @@ QObject *ContainmentInterface::screenContainment(QObject *appletInterface)
return nullptr;
}
return corona->containmentForScreen(containment->screen());
return corona->containmentForScreen(containment->screen(), QString(), QString());
}
bool ContainmentInterface::screenContainmentMutable(QObject *appletInterface)

Loading…
Cancel
Save