VirtualBox

Changeset 102420 in vbox


Ignore:
Timestamp:
Dec 1, 2023 2:02:28 PM (12 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10543: VBox Manager / Tools pane: Cleanup a bit of obsolete code.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp

    r99218 r102420  
    5353    : QWidget(pParent)
    5454    , m_pActionPool(pActionPool)
    55     , m_pItem(0)
    5655    , m_pLayout(0)
    5756    , m_pPaneError(0)
     
    294293}
    295294
    296 void UIToolPaneMachine::setCurrentItem(UIVirtualMachineItem *pItem)
    297 {
    298     if (m_pItem == pItem)
    299         return;
    300 
    301     /* Remember new item: */
    302     m_pItem = pItem;
    303 }
    304 
    305295void UIToolPaneMachine::setItems(const QList<UIVirtualMachineItem*> &items)
    306296{
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.h

    r99218 r102420  
    100100    void setErrorDetails(const QString &strDetails);
    101101
    102     /** Defines current machine @a pItem. */
    103     void setCurrentItem(UIVirtualMachineItem *pItem);
    104 
    105102    /** Defines the machine @a items. */
    106103    void setItems(const QList<UIVirtualMachineItem*> &items);
     
    130127    UIActionPool *m_pActionPool;
    131128
    132     /** Holds current machine item reference. */
    133     UIVirtualMachineItem *m_pItem;
    134 
    135129    /** Holds the stacked-layout instance. */
    136130    QStackedLayout      *m_pLayout;
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp

    r102322 r102420  
    11711171    const bool fCurrentItemIsOk = pItem && pItem->accessible();
    11721172
    1173     /* Propagate current item anyway: */
    1174     m_pPaneToolsMachine->setCurrentItem(pItem);
    1175 
    11761173    /* If current item is Ok: */
    11771174    if (fCurrentItemIsOk)
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