Fixed old signal name

This commit is contained in:
Albert Vaca 2015-12-17 05:54:37 -08:00
parent 49a24c258b
commit 1848e96a91
3 changed files with 6 additions and 6 deletions

View file

@ -183,7 +183,7 @@ void Daemon::onNewDeviceLink(const NetworkPackage& identityPackage, DeviceLink*
device->deleteLater();
} else {
connect(device, SIGNAL(reachableStatusChanged()), this, SLOT(onDeviceStatusChanged()));
connect(device, SIGNAL(pairingChanged(bool)), this, SLOT(onDeviceStatusChanged()));
connect(device, SIGNAL(trustedChanged(bool)), this, SLOT(onDeviceStatusChanged()));
d->mDevices[id] = device;
Q_EMIT deviceAdded(id);

View file

@ -193,8 +193,8 @@ void KdeConnectKcm::deviceSelected(const QModelIndex& current)
resetDeviceView();
connect(currentDevice, SIGNAL(pluginsChanged()), this, SLOT(resetCurrentDevice()));
connect(currentDevice, SIGNAL(pairingChanged(bool)), this, SLOT(pairingChanged(bool)));
connect(currentDevice, SIGNAL(pairingFailed(QString)), this, SLOT(pairingFailed(QString)));
connect(currentDevice, SIGNAL(trustedChanged(bool)), this, SLOT(trustedChanged(bool)));
connect(currentDevice, SIGNAL(pairingError(QString)), this, SLOT(pairingFailed(QString)));
}
void KdeConnectKcm::resetCurrentDevice()
@ -266,13 +266,13 @@ void KdeConnectKcm::pairingFailed(const QString& error)
{
if (sender() != currentDevice) return;
pairingChanged(false);
trustedChanged(false);
kcmUi->messages->setText(i18n("Error trying to pair: %1",error));
kcmUi->messages->animatedShow();
}
void KdeConnectKcm::pairingChanged(bool paired)
void KdeConnectKcm::trustedChanged(bool paired)
{
DeviceDbusInterface* senderDevice = (DeviceDbusInterface*) sender();
if (senderDevice != currentDevice) return;

View file

@ -53,7 +53,7 @@ private Q_SLOTS:
void pluginsConfigChanged();
void sendPing();
void resetSelection();
void pairingChanged(bool);
void trustedChanged(bool);
void pairingFailed(const QString& error);
void refresh();
void renameShow();