Changeset 47265 in vbox
- Timestamp:
- Jul 19, 2013 2:25:28 PM (12 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
r46796 r47265 69 69 template<> bool canConvert<KClipboardMode>(); 70 70 template<> bool canConvert<KDragAndDropMode>(); 71 template<> bool canConvert<KPointingHIDType>(); 71 72 template<> bool canConvert<KMediumType>(); 72 73 template<> bool canConvert<KMediumVariant>(); … … 111 112 template<> QString toString(const KClipboardMode &mode); 112 113 template<> QString toString(const KDragAndDropMode &mode); 114 template<> QString toString(const KPointingHIDType &type); 113 115 template<> QString toString(const KMediumType &type); 114 116 template<> QString toString(const KMediumVariant &variant); -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp
r47160 r47265 35 35 template<> bool canConvert<KClipboardMode>() { return true; } 36 36 template<> bool canConvert<KDragAndDropMode>() { return true; } 37 template<> bool canConvert<KPointingHIDType>() { return true; } 37 38 template<> bool canConvert<KMediumType>() { return true; } 38 39 template<> bool canConvert<KMediumVariant>() { return true; } … … 215 216 } 216 217 218 /* QString <= KPointingHIDType: */ 219 template<> QString toString(const KPointingHIDType &type) 220 { 221 switch (type) 222 { 223 case KPointingHIDType_PS2Mouse: return QApplication::translate("VBoxGlobal", "PS/2 Mouse", "PointingHIDType"); 224 case KPointingHIDType_USBMouse: return QApplication::translate("VBoxGlobal", "USB Mouse", "PointingHIDType"); 225 case KPointingHIDType_USBTablet: return QApplication::translate("VBoxGlobal", "USB Mouse/Tablet", "PointingHIDType"); 226 case KPointingHIDType_ComboMouse: return QApplication::translate("VBoxGlobal", "PS/2 and USB Mouse", "PointingHIDType"); 227 case KPointingHIDType_USBMultiTouch: return QApplication::translate("VBoxGlobal", "USB Multi-Touch Mouse/Tablet", "PointingHIDType"); 228 default: AssertMsgFailed(("No text for %d", type)); break; 229 } 230 return QString(); 231 } 232 217 233 /* QString <= KMediumType: */ 218 234 template<> QString toString(const KMediumType &type)
Note:
See TracChangeset
for help on using the changeset viewer.