VirtualBox

Changeset 101567 in vbox


Ignore:
Timestamp:
Oct 24, 2023 12:25:14 AM (11 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10450: Get rid of Qt5 stuff; This one is about type changes.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.cpp

    r100068 r101567  
    204204    aVec.resize (static_cast <int> (aArr.size()));
    205205    for (int i = 0; i < aVec.size(); ++ i)
    206 #ifndef VBOX_IS_QT6_OR_LATER
    207         aVec [i] = QString::fromUtf16 ((const ushort *)aArr [i]);
    208 #else
    209206        aVec [i] = QString::fromUtf16 ((const char16_t *)aArr [i]);
    210 #endif
    211207}
    212208
     
    256252    aVec.resize (static_cast <int> (aArr.size()));
    257253    for (int i = 0; i < aVec.size(); ++ i)
    258 #ifndef VBOX_IS_QT6_OR_LATER
    259         aVec [i] = QUuid(QString::fromUtf16 ((const ushort *)aArr [i]));
    260 #else
    261254        aVec [i] = QUuid(QString::fromUtf16 ((const char16_t *)aArr [i]));
    262 #endif
    263255}
    264256
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h

    r101042 r101567  
    399399        {
    400400            if (bstr) {
    401 #ifndef VBOX_IS_QT6_OR_LATER
    402                 str = QString::fromUtf16((const ushort *)bstr);
    403 #else
    404401                str = QString::fromUtf16((const char16_t *)bstr);
    405 #endif
    406402                SysFreeString(bstr);
    407403            }
     
    447443        {
    448444            if (bstr) {
    449 #ifndef VBOX_IS_QT6_OR_LATER
    450                 uuid = QUuid(QString::fromUtf16((const ushort *)bstr));
    451 #else
    452445                uuid = QUuid(QString::fromUtf16((const char16_t *)bstr));
    453 #endif
    454446                SysFreeString(bstr);
    455447            }
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UICloudEntityKey.h

    r98103 r101567  
    6868};
    6969
    70 #ifdef VBOX_IS_QT6_OR_LATER /* uint replaced with size_t since 6.0 */
    7170inline size_t qHash(const UICloudEntityKey &key, size_t uSeed)
    72 #else
    73 inline uint qHash(const UICloudEntityKey &key, uint uSeed)
    74 #endif
    7571{
    7672    return qHash(key.toString(), uSeed);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r101561 r101567  
    114114
    115115    /** Redirects all the native events to parent. */
    116 #ifdef VBOX_IS_QT6_OR_LATER /* long replaced with qintptr since 6.0 */
    117116    bool nativeEventFilter(const QByteArray &eventType, void *pMessage, qintptr*)
    118 #else
    119     bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long*)
    120 #endif
    121117    {
    122118        return m_pParent->nativeEventPreprocessor(eventType, pMessage);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.cpp

    r100068 r101567  
    9393
    9494    /** Handles all native events. */
    95 # ifdef VBOX_IS_QT6_OR_LATER /* long replaced with qintptr since 6.0 */
    9695    virtual bool nativeEventFilter(const QByteArray &eventType, void *pMessage, qintptr *pResult) RT_OVERRIDE
    97 # else
    98     virtual bool nativeEventFilter(const QByteArray &eventType, void *pMessage, long *pResult) RT_OVERRIDE
    99 # endif
    10096    {
    10197        /* Redirect event to parent: */
     
    190186    WCHAR wszKeyName[256];
    191187    if (::GetKeyNameTextW(iScan, wszKeyName, RT_ELEMENTS(wszKeyName)))
    192 #ifndef VBOX_IS_QT6_OR_LATER
    193         strKeyName = QString::fromUtf16((const ushort *)wszKeyName);
    194 #else
    195188        strKeyName = QString::fromUtf16((const char16_t *)wszKeyName);
    196 #endif
    197189    else
    198190    {
     
    636628}
    637629
    638 #ifdef VBOX_IS_QT6_OR_LATER /* long replaced with qintptr since 6.0 */
    639630bool UIHostComboEditorPrivate::nativeEvent(const QByteArray &eventType, void *pMessage, qintptr *pResult)
    640 #else
    641 bool UIHostComboEditorPrivate::nativeEvent(const QByteArray &eventType, void *pMessage, long *pResult)
    642 #endif
    643631{
    644632# if defined(VBOX_WS_MAC)
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.h

    r100064 r101567  
    201201
    202202    /** Handles native events. */
    203 #ifdef VBOX_IS_QT6_OR_LATER /* long replaced with qintptr since 6.0 */
    204203    virtual bool nativeEvent(const QByteArray &eventType, void *pMessage, qintptr *pResult) RT_OVERRIDE;
    205 #else
    206     virtual bool nativeEvent(const QByteArray &eventType, void *pMessage, long *pResult) RT_OVERRIDE;
    207 #endif
    208204
    209205    /** Handles key-press @a pEvent. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette