Changeset 74264 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 14, 2018 1:32:20 PM (6 years ago)
- 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 76 76 void UIToolsModel::init() 77 77 { 78 /* Update navigation: */ 78 /* Load last selected item: */ 79 loadLastSelectedItems(); 80 81 /* Update linked values: */ 82 updateLayout(); 79 83 updateNavigation(); 80 81 /* Update layout: */82 updateLayout();83 84 /* Load last selected item: */85 loadLastSelectedItem();86 84 } 87 85 … … 89 87 { 90 88 /* Save last selected item: */ 91 saveLastSelectedItem ();89 saveLastSelectedItems(); 92 90 } 93 91 … … 418 416 } 419 417 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()); 418 void UIToolsModel::loadLastSelectedItems() 419 { 420 /// @todo implement 421 } 422 423 void UIToolsModel::saveLastSelectedItems() 424 { 425 /// @todo implement 432 426 } 433 427 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h
r74249 r74264 105 105 /** @} */ 106 106 107 /** @name Children stuff. 108 * @{ */ 109 /** Holds the item list. */ 110 QList<UIToolsItem*> items() const; 111 /** @} */ 112 107 113 /** @name Selection stuff. 108 114 * @{ */ … … 129 135 /** Updates navigation list. */ 130 136 void updateNavigation(); 131 /** @} */132 133 /** @name Children stuff.134 * @{ */135 /** Holds the item list. */136 QList<UIToolsItem*> items() const;137 137 /** @} */ 138 138 … … 190 190 void prepareConnections(); 191 191 /** Loads last selected items. */ 192 void loadLastSelectedItem ();192 void loadLastSelectedItems(); 193 193 194 194 /** Saves last selected items. */ 195 void saveLastSelectedItem ();195 void saveLastSelectedItems(); 196 196 /** Cleanups connections. */ 197 197 void cleanupHandlers(); … … 221 221 /** @} */ 222 222 223 /** @name Children stuff. 224 * @{ */ 225 /** Holds the root stack. */ 226 QList<UIToolsItem*> m_items; 227 /** @} */ 228 223 229 /** @name Selection stuff. 224 230 * @{ */ … … 229 235 /** @} */ 230 236 231 /** @name Children stuff. 232 * @{ */ 233 /** Holds the root stack. */ 234 QList<UIToolsItem*> m_items; 235 237 /** @name Navigation stuff. 238 * @{ */ 236 239 /** Holds the navigation list. */ 237 240 QList<UIToolsItem*> m_navigationList;
Note:
See TracChangeset
for help on using the changeset viewer.