VirtualBox

Changeset 63926 in vbox


Ignore:
Timestamp:
Sep 21, 2016 3:03:24 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 45): Selector UI: Some additional API.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r63567 r63926  
    242242        m_pPaneDetails->setItems(currentItems());
    243243
    244     /* If currently selected VM item is accessible: */
     244    /* If current item exists & accessible: */
    245245    if (pItem && pItem->accessible())
    246246    {
     
    253253        if (fRefreshSnapshots)
    254254        {
    255             m_pPaneDesktop->updateSnapshots(pItem, pItem->machine());
     255            updateSnapshots(pItem, pItem->machine());
    256256            /* Always hide snapshots-view if
    257257             * single group or more than one machine is selected: */
    258258            if (currentItems().size() > 1 || m_pPaneChooser->isSingleGroupSelected())
    259                 m_pPaneDesktop->lockSnapshots();
    260         }
    261     }
    262     /* If currently selected VM item is NOT accessible: */
     259                lockSnapshots();
     260        }
     261    }
    263262    else
    264263    {
     
    294293
    295294        /* Empty and disable other tabs: */
    296         m_pPaneDesktop->updateSnapshots(0, CMachine());
     295        updateSnapshots(0, CMachine());
    297296    }
    298297}
     
    417416    /* If signal is for the current item: */
    418417    if (pItem->id() == strID)
    419         m_pPaneDesktop->updateSnapshots(pItem, pItem->machine());
     418        updateSnapshots(pItem, pItem->machine());
    420419}
    421420
     
    10541053}
    10551054
     1055void UISelectorWindow::updateSnapshots(UIVMItem *pItem, const CMachine &comMachine)
     1056{
     1057    /* Redirect call to Desktop-pane: */
     1058    m_pPaneDesktop->updateSnapshots(pItem, comMachine);
     1059}
     1060
     1061void UISelectorWindow::lockSnapshots()
     1062{
     1063    /* Redirect call to Desktop-pane: */
     1064    m_pPaneDesktop->lockSnapshots();
     1065}
     1066
    10561067void UISelectorWindow::retranslateUi()
    10571068{
     
    10681079    setWindowTitle(strTitle);
    10691080
    1070     /* Ensure the details and screenshot view are updated: */
     1081    /* Make sure details and snapshot panes are updated: */
    10711082    sltHandleChooserPaneIndexChange();
    10721083
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h

    r63291 r63926  
    2727
    2828/* Forward declarations: */
     29class CMachine;
    2930class UIAction;
    3031class UIActionPool;
     
    183184    QList<UIVMItem*> currentItems() const;
    184185
     186    /** Updates snapshot related controls for passed @a pItem and @a comMachine. */
     187    void updateSnapshots(UIVMItem *pItem, const CMachine &comMachine);
     188    /** Locks snapshot related controls. */
     189    void lockSnapshots();
     190
    185191    /** @name Event handling stuff.
    186192      * @{ */
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