VirtualBox

Ignore:
Timestamp:
Feb 11, 2021 9:42:55 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142765
Message:

FE/Qt: bugref:9532: Qt 5.15.2 migration: Fix obsolete Qt::Alignment init.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r86051 r87720  
    592592    switch (visualStateType)
    593593    {
    594         case UIVisualStateType_Normal: return 0;
     594        case UIVisualStateType_Normal: return Qt::Alignment();
    595595        case UIVisualStateType_Fullscreen: return Qt::AlignVCenter | Qt::AlignHCenter;
    596         case UIVisualStateType_Seamless: return 0;
    597         case UIVisualStateType_Scale: return 0;
     596        case UIVisualStateType_Seamless: return Qt::Alignment();
     597        case UIVisualStateType_Scale: return Qt::Alignment();
    598598        case UIVisualStateType_Invalid: case UIVisualStateType_All: break; /* Shut up, MSC! */
    599599    }
    600600    AssertMsgFailed(("Incorrect visual state!"));
    601     return 0;
     601    return Qt::Alignment();
    602602}
    603603
Note: See TracChangeset for help on using the changeset viewer.

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