forked from qt-creator/qt-creator
De-Q_OBJECT-ify most DeviceFactories
WinRt is the odd one out. Some were using setObjectName, but only used for debug reasons, not really needed. Change-Id: I4a370e4694443bc1c455fda4337ef3acfb9259b8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
|
||||
#include <utils/url.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
@@ -45,9 +44,8 @@ AndroidDevice::AndroidDevice()
|
||||
{
|
||||
setupId(IDevice::AutoDetected, Constants::ANDROID_DEVICE_ID);
|
||||
setType(Constants::ANDROID_DEVICE_TYPE);
|
||||
setDefaultDisplayName(QCoreApplication::translate("Android::Internal::AndroidDevice",
|
||||
"Run on Android"));
|
||||
setDisplayType(QCoreApplication::translate("Android::Internal::AndroidDevice", "Android"));
|
||||
setDefaultDisplayName(tr("Run on Android"));
|
||||
setDisplayType(tr("Android"));
|
||||
setMachineType(IDevice::Hardware);
|
||||
setOsType(Utils::OsTypeOtherUnix);
|
||||
|
||||
@@ -88,8 +86,7 @@ QUrl AndroidDevice::toolControlChannel(const ControlChannelHint &) const
|
||||
AndroidDeviceFactory::AndroidDeviceFactory()
|
||||
: ProjectExplorer::IDeviceFactory(Constants::ANDROID_DEVICE_TYPE)
|
||||
{
|
||||
setObjectName(QLatin1String("AndroidDeviceFactory"));
|
||||
setDisplayName(tr("Android Device"));
|
||||
setDisplayName(AndroidDevice::tr("Android Device"));
|
||||
setCombinedIcon(":/android/images/androiddevicesmall.png",
|
||||
":/android/images/androiddevice.png");
|
||||
setConstructionFunction(&AndroidDevice::create);
|
||||
|
Reference in New Issue
Block a user