VirtualBox

Changeset 93366 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 20, 2022 5:13:31 PM (3 years ago)
Author:
vboxsync
Message:

Reverting r149419 since I found better solution.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp

    r93342 r93366  
    763763    m_iAnimatedValue = iValue;
    764764    adjustGeometry();
    765     emit sigAnimationStep();
    766765}
    767766
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.h

    r93342 r93366  
    5555    /** Requests sliding state-machine to close overlay. */
    5656    void sigClose();
    57     /** Notifies listeners about animation step. */
    58     void sigAnimationStep();
    5957
    6058public:
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r93342 r93366  
    247247{
    248248    return frameBuffer() ? (double)(frameBuffer()->width()) / frameBuffer()->height() : 0;
    249 }
    250 
    251 void UIMachineView::updateView()
    252 {
    253     viewport()->update();
    254249}
    255250
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r93342 r93366  
    102102    double aspectRatio() const;
    103103
    104     /** Updates machine-view's viewport.
    105       * @remarks Used to update in case of notification-center animation. */
    106     void updateView();
    107104    /** Updates console's display viewport.
    108105      * @remarks Used to update 3D-service overlay viewport as well. */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r93342 r93366  
    178178    /* Update window-title: */
    179179    updateAppearanceOf(UIVisualElement_WindowTitle);
    180 }
    181 
    182 void UIMachineWindow::sltHandleNotificationCenterAnimationStep()
    183 {
    184     /* For certain machine states: */
    185     const KMachineState enmState = uisession()->machineState();
    186     switch (enmState)
    187     {
    188         /* Like those related to paused VM: */
    189         case KMachineState_Paused:
    190         case KMachineState_TeleportingPausedVM:
    191         {
    192             /* Update view's viewport, cause we have pause screenshot
    193              * distorted with animation artifacts. */
    194             machineView()->updateView();
    195             break;
    196         }
    197         default:
    198             break;
    199     }
    200180}
    201181
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h

    r93342 r93366  
    125125    virtual void sltMachineStateChanged();
    126126
    127     /** Handles notification-center animation steps. */
    128     void sltHandleNotificationCenterAnimationStep();
    129 
    130127protected:
    131128
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r93342 r93366  
    222222{
    223223    if (gpNotificationCenter && (m_uScreenId == 0))
    224     {
    225224        gpNotificationCenter->setParent(centralWidget());
    226         disconnect(gpNotificationCenter, &UINotificationCenter::sigAnimationStep, 0, 0);
    227         connect(gpNotificationCenter, &UINotificationCenter::sigAnimationStep,
    228                 this, &UIMachineWindowFullscreen::sltHandleNotificationCenterAnimationStep);
    229     }
    230225}
    231226
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r93342 r93366  
    326326{
    327327    if (gpNotificationCenter && (m_uScreenId == 0))
    328     {
    329328        gpNotificationCenter->setParent(centralWidget());
    330         disconnect(gpNotificationCenter, &UINotificationCenter::sigAnimationStep, 0, 0);
    331         connect(gpNotificationCenter, &UINotificationCenter::sigAnimationStep,
    332                 this, &UIMachineWindowNormal::sltHandleNotificationCenterAnimationStep);
    333     }
    334329}
    335330
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp

    r93342 r93366  
    6262{
    6363    if (gpNotificationCenter && (m_uScreenId == 0))
    64     {
    6564        gpNotificationCenter->setParent(centralWidget());
    66         disconnect(gpNotificationCenter, &UINotificationCenter::sigAnimationStep, 0, 0);
    67         connect(gpNotificationCenter, &UINotificationCenter::sigAnimationStep,
    68                 this, &UIMachineWindowScale::sltHandleNotificationCenterAnimationStep);
    69     }
    7065}
    7166
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