forked from qt-creator/qt-creator
Ios: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I1b25f0108939d87e859d0407a35f75b88fa0edc3 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
a21e71ec1a
commit
3410fee65f
@@ -288,10 +288,10 @@ void IosDeviceManager::deviceDisconnected(const QString &uid)
|
||||
void IosDeviceManager::updateInfo(const QString &devId)
|
||||
{
|
||||
IosToolHandler *requester = new IosToolHandler(IosDeviceType(IosDeviceType::IosDevice), this);
|
||||
connect(requester, SIGNAL(deviceInfo(Ios::IosToolHandler*,QString,Ios::IosToolHandler::Dict)),
|
||||
SLOT(deviceInfo(Ios::IosToolHandler*,QString,Ios::IosToolHandler::Dict)), Qt::QueuedConnection);
|
||||
connect(requester, SIGNAL(finished(Ios::IosToolHandler*)),
|
||||
SLOT(infoGathererFinished(Ios::IosToolHandler*)));
|
||||
connect(requester, &IosToolHandler::deviceInfo,
|
||||
this, &IosDeviceManager::deviceInfo, Qt::QueuedConnection);
|
||||
connect(requester, &IosToolHandler::finished,
|
||||
this, &IosDeviceManager::infoGathererFinished);
|
||||
requester->requestDeviceInfo(devId);
|
||||
}
|
||||
|
||||
@@ -518,8 +518,8 @@ IosDeviceManager::IosDeviceManager(QObject *parent) :
|
||||
{
|
||||
m_userModeDevicesTimer.setSingleShot(true);
|
||||
m_userModeDevicesTimer.setInterval(8000);
|
||||
connect(&m_userModeDevicesTimer, SIGNAL(timeout()),
|
||||
SLOT(updateUserModeDevices()));
|
||||
connect(&m_userModeDevicesTimer, &QTimer::timeout,
|
||||
this, &IosDeviceManager::updateUserModeDevices);
|
||||
}
|
||||
|
||||
void IosDeviceManager::updateUserModeDevices()
|
||||
|
||||
Reference in New Issue
Block a user