forked from qt-creator/qt-creator
RemoteLinux: Fix some line breaks
Change-Id: I11e13bc05be366c9dd1eb5449fc395c3098c012a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -35,7 +35,8 @@
|
||||
namespace RemoteLinux {
|
||||
namespace Internal {
|
||||
|
||||
EmbeddedLinuxQtVersion::EmbeddedLinuxQtVersion(const Utils::FileName &path, bool isAutodetected, const QString &autodetectionSource)
|
||||
EmbeddedLinuxQtVersion::EmbeddedLinuxQtVersion(const Utils::FileName &path, bool isAutodetected,
|
||||
const QString &autodetectionSource)
|
||||
: BaseQtVersion(path, isAutodetected, autodetectionSource)
|
||||
{
|
||||
setUnexpandedDisplayName(defaultUnexpandedDisplayName(path, false));
|
||||
|
||||
@@ -34,8 +34,8 @@ class EmbeddedLinuxQtVersion : public QtSupport::BaseQtVersion
|
||||
{
|
||||
public:
|
||||
EmbeddedLinuxQtVersion() = default;
|
||||
EmbeddedLinuxQtVersion(const Utils::FileName &path, bool isAutodetected = false, const QString &autodetectionSource = QString());
|
||||
~EmbeddedLinuxQtVersion() override = default;
|
||||
EmbeddedLinuxQtVersion(const Utils::FileName &path, bool isAutodetected = false,
|
||||
const QString &autodetectionSource = QString());
|
||||
EmbeddedLinuxQtVersion *clone() const override;
|
||||
|
||||
QString type() const override;
|
||||
|
||||
@@ -33,8 +33,10 @@
|
||||
namespace RemoteLinux {
|
||||
namespace Internal {
|
||||
|
||||
EmbeddedLinuxQtVersionFactory::EmbeddedLinuxQtVersionFactory(QObject *parent) : QtSupport::QtVersionFactory(parent)
|
||||
{ }
|
||||
EmbeddedLinuxQtVersionFactory::EmbeddedLinuxQtVersionFactory(QObject *parent)
|
||||
: QtSupport::QtVersionFactory(parent)
|
||||
{
|
||||
}
|
||||
|
||||
EmbeddedLinuxQtVersionFactory::~EmbeddedLinuxQtVersionFactory() = default;
|
||||
|
||||
|
||||
@@ -61,7 +61,8 @@ public:
|
||||
using namespace QSsh;
|
||||
using namespace Utils;
|
||||
|
||||
GenericLinuxDeviceConfigurationWizardSetupPage::GenericLinuxDeviceConfigurationWizardSetupPage(QWidget *parent) :
|
||||
GenericLinuxDeviceConfigurationWizardSetupPage::GenericLinuxDeviceConfigurationWizardSetupPage(
|
||||
QWidget *parent) :
|
||||
QWizardPage(parent), d(new Internal::GenericLinuxDeviceConfigurationWizardSetupPagePrivate)
|
||||
{
|
||||
d->ui.setupUi(this);
|
||||
@@ -119,7 +120,8 @@ void GenericLinuxDeviceConfigurationWizardSetupPage::setDevice(const LinuxDevice
|
||||
d->device = device;
|
||||
}
|
||||
|
||||
GenericLinuxDeviceConfigurationWizardFinalPage::GenericLinuxDeviceConfigurationWizardFinalPage(QWidget *parent)
|
||||
GenericLinuxDeviceConfigurationWizardFinalPage::GenericLinuxDeviceConfigurationWizardFinalPage(
|
||||
QWidget *parent)
|
||||
: QWizardPage(parent), d(new Internal::GenericLinuxDeviceConfigurationWizardFinalPagePrivate)
|
||||
{
|
||||
setTitle(tr("Summary"));
|
||||
|
||||
@@ -140,7 +140,8 @@ class LinuxPortsGatheringMethod : public PortsGatheringMethod
|
||||
// /proc/net/tcp* covers /proc/net/tcp and /proc/net/tcp6
|
||||
Runnable runnable;
|
||||
runnable.executable = "sed";
|
||||
runnable.commandLineArguments = "-e 's/.*: [[:xdigit:]]*:\\([[:xdigit:]]\\{4\\}\\).*/\\1/g' /proc/net/tcp*";
|
||||
runnable.commandLineArguments
|
||||
= "-e 's/.*: [[:xdigit:]]*:\\([[:xdigit:]]\\{4\\}\\).*/\\1/g' /proc/net/tcp*";
|
||||
return runnable;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,8 +46,8 @@ public:
|
||||
|
||||
using namespace Internal;
|
||||
|
||||
PublicKeyDeploymentDialog *PublicKeyDeploymentDialog::createDialog(const IDevice::ConstPtr &deviceConfig,
|
||||
QWidget *parent)
|
||||
PublicKeyDeploymentDialog *PublicKeyDeploymentDialog::createDialog(
|
||||
const IDevice::ConstPtr &deviceConfig, QWidget *parent)
|
||||
{
|
||||
const QString &dir = QFileInfo(deviceConfig->sshParameters().privateKeyFile).path();
|
||||
const QString publicKeyFileName = QFileDialog::getOpenFileName(parent
|
||||
@@ -108,7 +108,8 @@ void PublicKeyDeploymentDialog::handleDeploymentFinished(const QString &errorMsg
|
||||
buttonText = errorMsg;
|
||||
textColor = "red";
|
||||
}
|
||||
setLabelText(QString::fromLatin1("<font color=\"%1\">%2</font>").arg(QLatin1String(textColor), buttonText));
|
||||
setLabelText(QString::fromLatin1("<font color=\"%1\">%2</font>").arg(QLatin1String(textColor),
|
||||
buttonText));
|
||||
setCancelButtonText(tr("Close"));
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@
|
||||
namespace RemoteLinux {
|
||||
namespace Internal { class RemoteLinuxCheckForFreeDiskSpaceServicePrivate; }
|
||||
|
||||
class REMOTELINUX_EXPORT RemoteLinuxCheckForFreeDiskSpaceService : public AbstractRemoteLinuxDeployService
|
||||
class REMOTELINUX_EXPORT RemoteLinuxCheckForFreeDiskSpaceService :
|
||||
public AbstractRemoteLinuxDeployService
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
@@ -47,7 +47,8 @@ private:
|
||||
ProjectExplorer::Runnable runnable() const override;
|
||||
};
|
||||
|
||||
class RemoteLinuxCustomRunConfigurationFactory : public ProjectExplorer::FixedRunConfigurationFactory
|
||||
class RemoteLinuxCustomRunConfigurationFactory
|
||||
: public ProjectExplorer::FixedRunConfigurationFactory
|
||||
{
|
||||
public:
|
||||
RemoteLinuxCustomRunConfigurationFactory();
|
||||
|
||||
@@ -95,8 +95,7 @@ RemoteLinuxPlugin::~RemoteLinuxPlugin()
|
||||
delete dd;
|
||||
}
|
||||
|
||||
bool RemoteLinuxPlugin::initialize(const QStringList &arguments,
|
||||
QString *errorMessage)
|
||||
bool RemoteLinuxPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
{
|
||||
Q_UNUSED(arguments)
|
||||
Q_UNUSED(errorMessage)
|
||||
|
||||
@@ -57,8 +57,7 @@ int TypeSpecificDeviceConfigurationListModel::rowCount(const QModelIndex &parent
|
||||
return count;
|
||||
}
|
||||
|
||||
QVariant TypeSpecificDeviceConfigurationListModel::data(const QModelIndex &index,
|
||||
int role) const
|
||||
QVariant TypeSpecificDeviceConfigurationListModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (!index.isValid() || index.row() >= rowCount() || role != Qt::DisplayRole)
|
||||
return QVariant();
|
||||
|
||||
Reference in New Issue
Block a user