- Timestamp:
- Jul 14, 2014 11:07:33 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/converter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h
r51988 r52012 160 160 template<> QString toInternalString(const IndicatorType &indicatorType); 161 161 template<> IndicatorType fromInternalString<IndicatorType>(const QString &strIndicatorType); 162 template<> QIcon toIcon(const IndicatorType &indicatorType); 162 163 template<> QString toInternalString(const MachineCloseAction &machineCloseAction); 163 164 template<> MachineCloseAction fromInternalString<MachineCloseAction>(const QString &strMachineCloseAction); -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r51654 r52012 1136 1136 } 1137 1137 1138 /* QIcon <= IndicatorType: */ 1139 template<> QIcon toIcon(const IndicatorType &indicatorType) 1140 { 1141 switch (indicatorType) 1142 { 1143 case IndicatorType_HardDisks: return UIIconPool::iconSet(":/hd_16px.png"); 1144 case IndicatorType_OpticalDisks: return UIIconPool::iconSet(":/cd_16px.png"); 1145 case IndicatorType_FloppyDisks: return UIIconPool::iconSet(":/fd_16px.png"); 1146 case IndicatorType_Network: return UIIconPool::iconSet(":/nw_16px.png"); 1147 case IndicatorType_USB: return UIIconPool::iconSet(":/usb_16px.png"); 1148 case IndicatorType_SharedFolders: return UIIconPool::iconSet(":/sf_16px.png"); 1149 case IndicatorType_VideoCapture: return UIIconPool::iconSet(":/video_capture_16px.png"); 1150 case IndicatorType_Features: return UIIconPool::iconSet(":/vtx_amdv_16px.png"); 1151 case IndicatorType_Mouse: return UIIconPool::iconSet(":/mouse_16px.png"); 1152 case IndicatorType_Keyboard: return UIIconPool::iconSet(":/hostkey_16px.png"); 1153 default: 1154 { 1155 AssertMsgFailed(("No icon for indicator type=%d", indicatorType)); 1156 break; 1157 } 1158 } 1159 return QIcon(); 1160 } 1161 1138 1162 /* QString <= MachineCloseAction: */ 1139 1163 template<> QString toInternalString(const MachineCloseAction &machineCloseAction)
Note:
See TracChangeset
for help on using the changeset viewer.