VirtualBox

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


Ignore:
Timestamp:
Sep 14, 2018 1:32:20 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: VirtualBox Manager UI: A bit of cleanup for Tools-pane model.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools
Files:
2 edited

Legend:

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

    r74249 r74264  
    7676void UIToolsModel::init()
    7777{
    78     /* Update navigation: */
     78    /* Load last selected item: */
     79    loadLastSelectedItems();
     80
     81    /* Update linked values: */
     82    updateLayout();
    7983    updateNavigation();
    80 
    81     /* Update layout: */
    82     updateLayout();
    83 
    84     /* Load last selected item: */
    85     loadLastSelectedItem();
    8684}
    8785
     
    8987{
    9088    /* Save last selected item: */
    91     saveLastSelectedItem();
     89    saveLastSelectedItems();
    9290}
    9391
     
    418416}
    419417
    420 void UIToolsModel::loadLastSelectedItem()
    421 {
    422 //    /* Load last selected item (choose first if unable to load): */
    423 //    setCurrentItem(gEDataManager->toolsPaneLastItemChosen());
    424     if (!currentItem() && !navigationList().isEmpty())
    425         setCurrentItem(navigationList().first());
    426 }
    427 
    428 void UIToolsModel::saveLastSelectedItem()
    429 {
    430 //    /* Save last selected item: */
    431 //    gEDataManager->setToolsPaneLastItemChosen(currentItem() ? currentItem()->definition() : QString());
     418void UIToolsModel::loadLastSelectedItems()
     419{
     420    /// @todo implement
     421}
     422
     423void UIToolsModel::saveLastSelectedItems()
     424{
     425    /// @todo implement
    432426}
    433427
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h

    r74249 r74264  
    105105    /** @} */
    106106
     107    /** @name Children stuff.
     108      * @{ */
     109        /** Holds the item list. */
     110        QList<UIToolsItem*> items() const;
     111    /** @} */
     112
    107113    /** @name Selection stuff.
    108114      * @{ */
     
    129135        /** Updates navigation list. */
    130136        void updateNavigation();
    131     /** @} */
    132 
    133     /** @name Children stuff.
    134       * @{ */
    135         /** Holds the item list. */
    136         QList<UIToolsItem*> items() const;
    137137    /** @} */
    138138
     
    190190        void prepareConnections();
    191191        /** Loads last selected items. */
    192         void loadLastSelectedItem();
     192        void loadLastSelectedItems();
    193193
    194194        /** Saves last selected items. */
    195         void saveLastSelectedItem();
     195        void saveLastSelectedItems();
    196196        /** Cleanups connections. */
    197197        void cleanupHandlers();
     
    221221    /** @} */
    222222
     223    /** @name Children stuff.
     224      * @{ */
     225        /** Holds the root stack. */
     226        QList<UIToolsItem*>  m_items;
     227    /** @} */
     228
    223229    /** @name Selection stuff.
    224230      * @{ */
     
    229235    /** @} */
    230236
    231     /** @name Children stuff.
    232       * @{ */
    233         /** Holds the root stack. */
    234         QList<UIToolsItem*>  m_items;
    235 
     237    /** @name Navigation stuff.
     238      * @{ */
    236239        /** Holds the navigation list. */
    237240        QList<UIToolsItem*>  m_navigationList;
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