dirty kcm integration
This commit is contained in:
parent
16f8675bb6
commit
e74627ce15
3 changed files with 15 additions and 0 deletions
|
@ -73,6 +73,8 @@ KdeConnectKcm::KdeConnectKcm(QWidget *parent, const QVariantList&)
|
||||||
this, SLOT(unpair()));
|
this, SLOT(unpair()));
|
||||||
connect(kcmUi->ping_button, SIGNAL(pressed()),
|
connect(kcmUi->ping_button, SIGNAL(pressed()),
|
||||||
this, SLOT(sendPing()));
|
this, SLOT(sendPing()));
|
||||||
|
connect(kcmUi->browse_button, SIGNAL(clicked(bool)),
|
||||||
|
this, SLOT(browseFilesystem()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,3 +254,8 @@ void KdeConnectKcm::sendPing()
|
||||||
currentDevice->sendPing();
|
currentDevice->sendPing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void KdeConnectKcm::browseFilesystem()
|
||||||
|
{
|
||||||
|
if (!currentDevice) return;
|
||||||
|
SftpDbusInterface(currentDevice->id(), this).browseFilesystem();
|
||||||
|
}
|
||||||
|
|
|
@ -58,6 +58,7 @@ private Q_SLOTS:
|
||||||
void requestPair();
|
void requestPair();
|
||||||
void pluginsConfigChanged();
|
void pluginsConfigChanged();
|
||||||
void sendPing();
|
void sendPing();
|
||||||
|
void browseFilesystem();
|
||||||
void resetSelection();
|
void resetSelection();
|
||||||
void pairingSuccesful();
|
void pairingSuccesful();
|
||||||
void pairingFailed(const QString& error);
|
void pairingFailed(const QString& error);
|
||||||
|
|
|
@ -169,6 +169,13 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="browse_button">
|
||||||
|
<property name="text">
|
||||||
|
<string>Browse</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in a new issue