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()));
|
||||
connect(kcmUi->ping_button, SIGNAL(pressed()),
|
||||
this, SLOT(sendPing()));
|
||||
connect(kcmUi->browse_button, SIGNAL(clicked(bool)),
|
||||
this, SLOT(browseFilesystem()));
|
||||
|
||||
}
|
||||
|
||||
|
@ -252,3 +254,8 @@ void KdeConnectKcm::sendPing()
|
|||
currentDevice->sendPing();
|
||||
}
|
||||
|
||||
void KdeConnectKcm::browseFilesystem()
|
||||
{
|
||||
if (!currentDevice) return;
|
||||
SftpDbusInterface(currentDevice->id(), this).browseFilesystem();
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@ private Q_SLOTS:
|
|||
void requestPair();
|
||||
void pluginsConfigChanged();
|
||||
void sendPing();
|
||||
void browseFilesystem();
|
||||
void resetSelection();
|
||||
void pairingSuccesful();
|
||||
void pairingFailed(const QString& error);
|
||||
|
|
|
@ -169,6 +169,13 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="browse_button">
|
||||
<property name="text">
|
||||
<string>Browse</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue