- Timestamp:
- Jan 10, 2024 11:43:56 AM (13 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.cpp
r102811 r102812 146 146 connect(m_pToolsModel, &UIToolsModel::sigClose, 147 147 this, &UITools::close); 148 connect(m_pToolsModel, &UIToolsModel::sigSelectionChanged, 149 this, &UITools::sigSelectionChanged); 150 connect(m_pToolsModel, &UIToolsModel::sigExpandingStarted, 151 this, &UITools::sigExpandingStarted); 152 connect(m_pToolsModel, &UIToolsModel::sigExpandingFinished, 153 this, &UITools::sigExpandingFinished); 148 154 connect(m_pToolsModel, &UIToolsModel::sigItemMinimumWidthHintChanged, 149 155 m_pToolsView, &UIToolsView::sltMinimumWidthHintChanged); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp
r102811 r102812 449 449 /* Prepare handlers: */ 450 450 prepareHandlers(); 451 /* Prepare connections: */452 prepareConnections();453 451 /* Apply language settings: */ 454 452 retranslateUi(); … … 539 537 m_pMouseHandler = new UIToolsHandlerMouse(this); 540 538 m_pKeyboardHandler = new UIToolsHandlerKeyboard(this); 541 }542 543 void UIToolsModel::prepareConnections()544 {545 AssertPtrReturnVoid(m_pTools);546 {547 /* Setup parent connections: */548 connect(this, &UIToolsModel::sigSelectionChanged,549 m_pTools, &UITools::sigSelectionChanged);550 connect(this, &UIToolsModel::sigExpandingStarted,551 m_pTools, &UITools::sigExpandingStarted);552 connect(this, &UIToolsModel::sigExpandingFinished,553 m_pTools, &UITools::sigExpandingFinished);554 }555 539 } 556 540 … … 604 588 } 605 589 606 void UIToolsModel::cleanupConnections()607 {608 /* Disconnect selection-changed signal prematurelly: */609 disconnect(this, &UIToolsModel::sigSelectionChanged,610 m_pTools, &UITools::sigSelectionChanged);611 }612 613 590 void UIToolsModel::cleanupHandlers() 614 591 { … … 634 611 void UIToolsModel::cleanup() 635 612 { 636 /* Cleanup connections: */637 cleanupConnections();638 613 /* Cleanup handlers: */ 639 614 cleanupHandlers(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h
r102811 r102812 228 228 /** Prepares handlers. */ 229 229 void prepareHandlers(); 230 /** Prepares connections. */231 void prepareConnections();232 230 /** Loads settings. */ 233 231 void loadSettings(); … … 236 234 static void loadLastToolTypes(UIToolType &enmTypeGlobal, UIToolType &enmTypeMachine); 237 235 238 /** Cleanups connections. */ 239 void cleanupConnections(); 240 /** Cleanups connections. */ 236 /** Cleanups handlers. */ 241 237 void cleanupHandlers(); 242 238 /** Cleanups items. */
Note:
See TracChangeset
for help on using the changeset viewer.