- Timestamp:
- Jun 2, 2017 3:39:58 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r67088 r67250 817 817 } 818 818 819 void UIMediumManagerWidget::showEvent(QShowEvent *pEvent) 820 { 821 /* Call to base-class: */ 822 QIWithRetranslateUI<QWidget>::showEvent(pEvent); 823 824 /* Focus current tree-widget: */ 825 if (currentTreeWidget()) 826 currentTreeWidget()->setFocus(); 827 } 828 819 829 void UIMediumManagerWidget::sltHandleMediumCreated(const QString &strMediumID) 820 830 { … … 1276 1286 /* Add tab-widget into central layout: */ 1277 1287 layout()->addWidget(m_pTabWidget); 1278 /* Focus current tree-widget: */1279 if (currentTreeWidget())1280 currentTreeWidget()->setFocus();1281 1288 /* Update other widgets according chosen tab: */ 1282 1289 sltHandleCurrentTabChanged(); … … 2313 2320 setWidgetToolbar(pWidget->toolbar()); 2314 2321 #endif 2315 /* Add to layout: */2322 /* Add into layout: */ 2316 2323 centralWidget()->layout()->addWidget(pWidget); 2317 2324 } -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h
r67122 r67250 78 78 /** Handles translation event. */ 79 79 virtual void retranslateUi() /* override */; 80 81 /** Handles @a pShow event. */ 82 virtual void showEvent(QShowEvent *pEvent) /* override */; 80 83 /** @} */ 81 84
Note:
See TracChangeset
for help on using the changeset viewer.