forked from qt-creator/qt-creator
Revert "Remote Linux: Rework device testing"
This reverts commit 934c067ddf365c6f12b1e4a1e431f27610b32f7d, because it breaks running remote Linux applications due to buggy refactoring of the remote ports gatherer. Change-Id: I15fd8d4f3e76452a8c5c735316991bd00900444f Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -30,17 +30,12 @@
|
||||
**************************************************************************/
|
||||
#include "genericlinuxdeviceconfigurationwizard.h"
|
||||
|
||||
#include "genericlinuxdeviceconfigurationfactory.h"
|
||||
#include "genericlinuxdeviceconfigurationwizardpages.h"
|
||||
#include "linuxdevicetestdialog.h"
|
||||
#include "linuxdevicetester.h"
|
||||
#include "portlist.h"
|
||||
#include "remotelinux_constants.h"
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
using namespace Utils;
|
||||
|
||||
namespace RemoteLinux {
|
||||
@@ -92,16 +87,8 @@ LinuxDeviceConfiguration::Ptr GenericLinuxDeviceConfigurationWizard::deviceConfi
|
||||
LinuxDeviceConfiguration::Ptr devConf = LinuxDeviceConfiguration::create(d->setupPage.configurationName(),
|
||||
QLatin1String(Constants::GenericLinuxOsType), LinuxDeviceConfiguration::Hardware,
|
||||
PortList::fromString(QLatin1String("10000-10100")), sshParams);
|
||||
|
||||
GenericLinuxDeviceConfigurationFactory *factory =
|
||||
ExtensionSystem::PluginManager::instance()->getObject<GenericLinuxDeviceConfigurationFactory>();
|
||||
QTC_ASSERT(factory, return LinuxDeviceConfiguration::Ptr(0));
|
||||
|
||||
QDialog *dlg = factory->createDeviceAction(QLatin1String(Constants::GenericTestDeviceActionId), devConf, 0);
|
||||
QTC_ASSERT(dlg, return LinuxDeviceConfiguration::Ptr(0));
|
||||
dlg->exec();
|
||||
delete dlg;
|
||||
|
||||
LinuxDeviceTestDialog dlg(devConf, new GenericLinuxDeviceTester(this), this);
|
||||
dlg.exec();
|
||||
return devConf;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user