Changeset 101567 in vbox
- Timestamp:
- Oct 24, 2023 12:25:14 AM (11 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
-
globals/COMDefs.cpp (modified) (2 diffs)
-
globals/COMDefs.h (modified) (2 diffs)
-
manager/UICloudEntityKey.h (modified) (1 diff)
-
runtime/UIMachineView.cpp (modified) (1 diff)
-
settings/editors/UIHostComboEditor.cpp (modified) (3 diffs)
-
settings/editors/UIHostComboEditor.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.cpp
r100068 r101567 204 204 aVec.resize (static_cast <int> (aArr.size())); 205 205 for (int i = 0; i < aVec.size(); ++ i) 206 #ifndef VBOX_IS_QT6_OR_LATER207 aVec [i] = QString::fromUtf16 ((const ushort *)aArr [i]);208 #else209 206 aVec [i] = QString::fromUtf16 ((const char16_t *)aArr [i]); 210 #endif211 207 } 212 208 … … 256 252 aVec.resize (static_cast <int> (aArr.size())); 257 253 for (int i = 0; i < aVec.size(); ++ i) 258 #ifndef VBOX_IS_QT6_OR_LATER259 aVec [i] = QUuid(QString::fromUtf16 ((const ushort *)aArr [i]));260 #else261 254 aVec [i] = QUuid(QString::fromUtf16 ((const char16_t *)aArr [i])); 262 #endif263 255 } 264 256 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h
r101042 r101567 399 399 { 400 400 if (bstr) { 401 #ifndef VBOX_IS_QT6_OR_LATER402 str = QString::fromUtf16((const ushort *)bstr);403 #else404 401 str = QString::fromUtf16((const char16_t *)bstr); 405 #endif406 402 SysFreeString(bstr); 407 403 } … … 447 443 { 448 444 if (bstr) { 449 #ifndef VBOX_IS_QT6_OR_LATER450 uuid = QUuid(QString::fromUtf16((const ushort *)bstr));451 #else452 445 uuid = QUuid(QString::fromUtf16((const char16_t *)bstr)); 453 #endif454 446 SysFreeString(bstr); 455 447 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UICloudEntityKey.h
r98103 r101567 68 68 }; 69 69 70 #ifdef VBOX_IS_QT6_OR_LATER /* uint replaced with size_t since 6.0 */71 70 inline size_t qHash(const UICloudEntityKey &key, size_t uSeed) 72 #else73 inline uint qHash(const UICloudEntityKey &key, uint uSeed)74 #endif75 71 { 76 72 return qHash(key.toString(), uSeed); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r101561 r101567 114 114 115 115 /** Redirects all the native events to parent. */ 116 #ifdef VBOX_IS_QT6_OR_LATER /* long replaced with qintptr since 6.0 */117 116 bool nativeEventFilter(const QByteArray &eventType, void *pMessage, qintptr*) 118 #else119 bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long*)120 #endif121 117 { 122 118 return m_pParent->nativeEventPreprocessor(eventType, pMessage); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.cpp
r100068 r101567 93 93 94 94 /** Handles all native events. */ 95 # ifdef VBOX_IS_QT6_OR_LATER /* long replaced with qintptr since 6.0 */96 95 virtual bool nativeEventFilter(const QByteArray &eventType, void *pMessage, qintptr *pResult) RT_OVERRIDE 97 # else98 virtual bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long *pResult) RT_OVERRIDE99 # endif100 96 { 101 97 /* Redirect event to parent: */ … … 190 186 WCHAR wszKeyName[256]; 191 187 if (::GetKeyNameTextW(iScan, wszKeyName, RT_ELEMENTS(wszKeyName))) 192 #ifndef VBOX_IS_QT6_OR_LATER193 strKeyName = QString::fromUtf16((const ushort *)wszKeyName);194 #else195 188 strKeyName = QString::fromUtf16((const char16_t *)wszKeyName); 196 #endif197 189 else 198 190 { … … 636 628 } 637 629 638 #ifdef VBOX_IS_QT6_OR_LATER /* long replaced with qintptr since 6.0 */639 630 bool UIHostComboEditorPrivate::nativeEvent(const QByteArray &eventType, void *pMessage, qintptr *pResult) 640 #else641 bool UIHostComboEditorPrivate::nativeEvent(const QByteArray &eventType, void *pMessage, long *pResult)642 #endif643 631 { 644 632 # if defined(VBOX_WS_MAC) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.h
r100064 r101567 201 201 202 202 /** Handles native events. */ 203 #ifdef VBOX_IS_QT6_OR_LATER /* long replaced with qintptr since 6.0 */204 203 virtual bool nativeEvent(const QByteArray &eventType, void *pMessage, qintptr *pResult) RT_OVERRIDE; 205 #else206 virtual bool nativeEvent(const QByteArray &eventType, void *pMessage, long *pResult) RT_OVERRIDE;207 #endif208 204 209 205 /** Handles key-press @a pEvent. */
Note:
See TracChangeset
for help on using the changeset viewer.

