VirtualBox

Changeset 97514 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 11, 2022 12:46:18 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154537
Message:

FE/Qt: bugref:10067: Wipe out popup-center from Runtime UI.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
3 edited

Legend:

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

    r97512 r97514  
    6767#include "UIMouseHandler.h"
    6868#include "UINotificationCenter.h"
    69 #include "UIPopupCenter.h"
    7069#include "UISession.h"
    7170#include "UISettingsDialogSpecific.h"
     
    796795    m_methods.clear();
    797796#endif
    798 }
    799 
    800 void UIMachineLogic::setMachineWindowsCreated(bool fIsWindowsCreated)
    801 {
    802     /* Make sure something changed: */
    803     if (m_fIsWindowsCreated == fIsWindowsCreated)
    804         return;
    805 
    806     /* Special handling for 'destroyed' case: */
    807     if (!fIsWindowsCreated)
    808     {
    809         /* We ask popup-center to hide corresponding popup-stack *before* the remembering new value
    810          * because we want UIMachineLogic::activeMachineWindow() to be yet alive. */
    811         popupCenter().hidePopupStack(activeMachineWindow());
    812     }
    813 
    814     /* Remember new value: */
    815     m_fIsWindowsCreated = fIsWindowsCreated;
    816 
    817     /* Special handling for 'created' case: */
    818     if (fIsWindowsCreated)
    819     {
    820         /* We ask popup-center to show corresponding popup-stack *after* the remembering new value
    821          * because we want UIMachineLogic::activeMachineWindow() to be already alive. */
    822         popupCenter().setPopupStackType(activeMachineWindow(),
    823                                         visualStateType() == UIVisualStateType_Seamless ?
    824                                         UIPopupStackType_Separate : UIPopupStackType_Embedded);
    825         popupCenter().showPopupStack(activeMachineWindow());
    826     }
    827797}
    828798
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r97512 r97514  
    202202    /* Protected getters/setters: */
    203203    bool isMachineWindowsCreated() const { return m_fIsWindowsCreated; }
    204     void setMachineWindowsCreated(bool fIsWindowsCreated);
     204    void setMachineWindowsCreated(bool fIsWindowsCreated) { m_fIsWindowsCreated = fIsWindowsCreated; }
    205205
    206206    /* Protected members: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r97512 r97514  
    3434#include "UICommon.h"
    3535#include "UIMessageCenter.h"
    36 #include "UIPopupCenter.h"
    3736#include "UISession.h"
    3837#include "UIActionPoolRuntime.h"
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