Fix QObject::connect() warnings

Adapt to changes in Plasma::Corona
This commit is contained in:
Aleix Pol 2013-12-19 17:31:28 +01:00
parent 09ccb8712b
commit d2992acfa7
3 changed files with 3 additions and 8 deletions

View File

@ -444,8 +444,8 @@ Containment *CoronaPrivate::addContainment(const QString &name, const QVariantLi
q, SLOT(containmentDestroyed(QObject*)));
QObject::connect(containment, SIGNAL(configNeedsSaving()),
q, SLOT(requestConfigSync()));
QObject::connect(containment, SIGNAL(screenChanged(int,int,Plasma::Containment*)),
q, SIGNAL(screenOwnerChanged(int,int,Plasma::Containment*)));
QObject::connect(containment, SIGNAL(screenChanged(int)),
q, SIGNAL(screenOwnerChanged(int)));
containment->init();
KConfigGroup cg = containment->config();

View File

@ -217,11 +217,9 @@ Q_SIGNALS:
* This signal indicates that a containment has been newly
* associated (or dissociated) with a physical screen.
*
* @param wasScreen the screen it was associated with
* @param isScreen the screen it is now associated with
* @param containment the containment switching screens
*/
void screenOwnerChanged(int wasScreen, int isScreen, Plasma::Containment *containment);
void screenOwnerChanged(int isScreen);
/**
* This signal indicates that the configuration file was flushed to disk.

View File

@ -139,9 +139,6 @@ ShellCorona::ShellCorona(QObject *parent)
activityAction->setShortcut(QKeySequence("alt+d, alt+a"));
activityAction->setShortcutContext(Qt::ApplicationShortcut);
connect(this, SIGNAL(immutabilityChanged(Plasma::ImmutabilityType)),
this, SLOT(updateImmutability(Plasma::ImmutabilityType)));
connect(d->activityConsumer, SIGNAL(currentActivityChanged(QString)), this, SLOT(currentActivityChanged(QString)));
connect(d->activityConsumer, SIGNAL(activityAdded(QString)), this, SLOT(activityAdded(QString)));
connect(d->activityConsumer, SIGNAL(activityRemoved(QString)), this, SLOT(activityRemoved(QString)));