diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2016-09-23 00:39:50 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2016-09-26 11:52:00 +0000 |
commit | 59b7601c58fb2a4bbc2505c6455f2608ba41fd1d (patch) | |
tree | 30057b9decb9b84d42fc1b6585ef506daf5d1a50 /src/plugins/ios/iosdevice.cpp | |
parent | 4e3dcbd4d8addd811229d74865754d69ce432721 (diff) |
ProjectExplorer: default icons for IDevice
Enable devices to define their default themable icon.
Kit icons are now by default the Desktopdevice icon,
overridable by the device icon of the kit's device,
in turn overridable by an icon file path.
KitManagerConfigWidget: The browse button for the Kit
icon gets a "reset" action.
Change-Id: I6328ba7d640393aee2c324c592e76b4d5430586a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/ios/iosdevice.cpp')
-rw-r--r-- | src/plugins/ios/iosdevice.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/ios/iosdevice.cpp b/src/plugins/ios/iosdevice.cpp index 4945b4cd0a..69d1703124 100644 --- a/src/plugins/ios/iosdevice.cpp +++ b/src/plugins/ios/iosdevice.cpp @@ -31,6 +31,7 @@ #include <projectexplorer/devicesupport/devicemanager.h> #include <projectexplorer/kitinformation.h> #include <coreplugin/helpmanager.h> +#include <utils/icon.h> #include <utils/portlist.h> #include <QCoreApplication> @@ -91,6 +92,7 @@ IosDevice::IosDevice() ports.addRange(Utils::Port(Constants::IOS_DEVICE_PORT_START), Utils::Port(Constants::IOS_DEVICE_PORT_END)); setFreePorts(ports); + setDeviceIcon({Utils::Icon(":/ios/images/iossettings.png")}); } IosDevice::IosDevice(const IosDevice &other) |