forked from qt-creator/qt-creator
iOS: Modernize
modernize-* Change-Id: I64d2bb4320c9b444bc13e90099600628eac1f5a6 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -48,15 +48,15 @@ class IosDeviceManager;
|
||||
class IosDevice : public ProjectExplorer::IDevice
|
||||
{
|
||||
public:
|
||||
typedef QMap<QString, QString> Dict;
|
||||
typedef QSharedPointer<const IosDevice> ConstPtr;
|
||||
typedef QSharedPointer<IosDevice> Ptr;
|
||||
using Dict = QMap<QString, QString>;
|
||||
using ConstPtr = QSharedPointer<const IosDevice>;
|
||||
using Ptr = QSharedPointer<IosDevice>;
|
||||
|
||||
ProjectExplorer::IDevice::DeviceInfo deviceInformation() const override;
|
||||
ProjectExplorer::IDeviceWidget *createWidget() override;
|
||||
QList<Core::Id> actionIds() const override;
|
||||
QString displayNameForActionId(Core::Id actionId) const override;
|
||||
void executeAction(Core::Id actionId, QWidget *parent = 0) override;
|
||||
void executeAction(Core::Id actionId, QWidget *parent = nullptr) override;
|
||||
ProjectExplorer::DeviceProcessSignalOperation::Ptr signalOperation() const override;
|
||||
QString displayType() const override;
|
||||
|
||||
@@ -85,7 +85,7 @@ protected:
|
||||
class IosDeviceManager : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
typedef QHash<QString, QString> TranslationMap;
|
||||
using TranslationMap = QHash<QString, QString>;
|
||||
|
||||
static TranslationMap translationMap();
|
||||
static IosDeviceManager *instance();
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
void monitorAvailableDevices();
|
||||
private:
|
||||
void updateUserModeDevices();
|
||||
IosDeviceManager(QObject *parent = 0);
|
||||
IosDeviceManager(QObject *parent = nullptr);
|
||||
QTimer m_userModeDevicesTimer;
|
||||
QStringList m_userModeDeviceIds;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user