forked from qt-creator/qt-creator
GenericLinuxDeviceConfigurationWizard: Rename into SshDeviceWizard
Change-Id: I67baad931c524376de6ae67a361db6866a910317 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -95,8 +95,7 @@ QnxDeviceFactory::QnxDeviceFactory() : IDeviceFactory(Constants::QNX_QNX_OS_TYPE
|
|||||||
setConstructionFunction([] { return IDevice::Ptr(new QnxDevice); });
|
setConstructionFunction([] { return IDevice::Ptr(new QnxDevice); });
|
||||||
setCreator([]() -> IDevice::Ptr {
|
setCreator([]() -> IDevice::Ptr {
|
||||||
const IDevice::Ptr device = IDevice::Ptr(new QnxDevice);
|
const IDevice::Ptr device = IDevice::Ptr(new QnxDevice);
|
||||||
GenericLinuxDeviceConfigurationWizard wizard(
|
SshDeviceWizard wizard(Tr::tr("New QNX Device Configuration Setup"), device);
|
||||||
Tr::tr("New QNX Device Configuration Setup"), device);
|
|
||||||
if (wizard.exec() != QDialog::Accepted)
|
if (wizard.exec() != QDialog::Accepted)
|
||||||
return {};
|
return {};
|
||||||
return device;
|
return device;
|
||||||
|
@@ -208,8 +208,7 @@ private:
|
|||||||
QLabel m_infoLabel;
|
QLabel m_infoLabel;
|
||||||
};
|
};
|
||||||
|
|
||||||
GenericLinuxDeviceConfigurationWizard::GenericLinuxDeviceConfigurationWizard(
|
SshDeviceWizard::SshDeviceWizard(const QString &title, const ProjectExplorer::IDevicePtr &device)
|
||||||
const QString &title, const ProjectExplorer::IDevicePtr &device)
|
|
||||||
: Wizard(Core::ICore::dialogParent())
|
: Wizard(Core::ICore::dialogParent())
|
||||||
{
|
{
|
||||||
setWindowTitle(title);
|
setWindowTitle(title);
|
||||||
|
@@ -10,13 +10,10 @@
|
|||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
|
|
||||||
class REMOTELINUX_EXPORT GenericLinuxDeviceConfigurationWizard : public Utils::Wizard
|
class REMOTELINUX_EXPORT SshDeviceWizard : public Utils::Wizard
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GenericLinuxDeviceConfigurationWizard(const QString &title,
|
SshDeviceWizard(const QString &title, const ProjectExplorer::IDevicePtr &device);
|
||||||
const ProjectExplorer::IDevicePtr &device);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace RemoteLinux
|
} // namespace RemoteLinux
|
||||||
|
@@ -1484,8 +1484,7 @@ LinuxDeviceFactory::LinuxDeviceFactory()
|
|||||||
setQuickCreationAllowed(true);
|
setQuickCreationAllowed(true);
|
||||||
setCreator([]() -> IDevice::Ptr {
|
setCreator([]() -> IDevice::Ptr {
|
||||||
const IDevice::Ptr device = LinuxDevice::create();
|
const IDevice::Ptr device = LinuxDevice::create();
|
||||||
GenericLinuxDeviceConfigurationWizard wizard(
|
SshDeviceWizard wizard(Tr::tr("New Remote Linux Device Configuration Setup"), device);
|
||||||
Tr::tr("New Remote Linux Device Configuration Setup"), device);
|
|
||||||
if (wizard.exec() != QDialog::Accepted)
|
if (wizard.exec() != QDialog::Accepted)
|
||||||
return {};
|
return {};
|
||||||
return device;
|
return device;
|
||||||
|
Reference in New Issue
Block a user