forked from qt-creator/qt-creator
Qnx: Simple BlackBerry debug token management.
This patch enables debug token creation and installation. Change-Id: I85cbb8ddc413228662cd7967e1805196212a430c Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "blackberrydebugtokenrequestdialog.h"
|
||||
#include "blackberrydeviceconfigurationwizardpages.h"
|
||||
#include "ui_blackberrydeviceconfigurationwizardsetuppage.h"
|
||||
#include "ui_blackberrydeviceconfigurationwizardsshkeypage.h"
|
||||
@@ -67,6 +68,7 @@ BlackBerryDeviceConfigurationWizardSetupPage::BlackBerryDeviceConfigurationWizar
|
||||
connect(m_ui->physicalDevice, SIGNAL(toggled(bool)), this, SLOT(handleMachineTypeChanged()));
|
||||
connect(m_ui->physicalDevice, SIGNAL(toggled(bool)), this, SIGNAL(completeChanged()));
|
||||
connect(m_ui->debugToken, SIGNAL(changed(QString)), this, SIGNAL(completeChanged()));
|
||||
connect(m_ui->requestButton, SIGNAL(clicked()), this, SLOT(requestDebugToken()));
|
||||
|
||||
registerField(QLatin1String(DEVICENAME_FIELD_ID), m_ui->deviceName);
|
||||
}
|
||||
@@ -126,6 +128,17 @@ void BlackBerryDeviceConfigurationWizardSetupPage::handleMachineTypeChanged()
|
||||
m_ui->deviceHostIp->setText(defaultDeviceHostIp(machineType()));
|
||||
}
|
||||
|
||||
void BlackBerryDeviceConfigurationWizardSetupPage::requestDebugToken()
|
||||
{
|
||||
BlackBerryDebugTokenRequestDialog dialog;
|
||||
|
||||
const int result = dialog.exec();
|
||||
|
||||
if (result != QDialog::Accepted)
|
||||
return;
|
||||
|
||||
m_ui->debugToken->setPath(dialog.debugToken());
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user