Changeset 102573 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Dec 11, 2023 3:56:45 PM (14 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r102269 r102573 324 324 { 325 325 if (qobject_cast<UILabelTab*>(m_pTabWidget->widget(i))) 326 {327 326 pTabBar->setTabData(i, true); 328 /* Add close button only for dialog mode in manager UI. */329 if (uiCommon().uiType() == UICommon::UIType_SelectorUI && m_enmEmbedding == EmbedTo_Dialog)330 {331 UIVMLogTab *pTab = logTab(i);332 if (pTab)333 {334 UILogTabCloseButton *pCloseButton = new UILogTabCloseButton(0, pTab->machineId());335 pCloseButton->setIcon(UIIconPool::iconSet(":/close_16px.png"));336 pTabBar->setTabButton(i, QTabBar::RightSide, pCloseButton);337 pCloseButton->setToolTip(tr("Close this machine's logs"));338 connect(pCloseButton, &UILogTabCloseButton::clicked, this, &UIVMLogViewerWidget::sltTabCloseButtonClick);339 }340 }341 }342 327 else 343 {344 328 pTabBar->setTabData(i, false); 345 }346 347 329 } 348 330 } … … 672 654 machineList << machineId; 673 655 removeLogViewerPages(machineList); 674 }675 676 void UIVMLogViewerWidget::sltTabCloseButtonClick()677 {678 UILogTabCloseButton *pButton = qobject_cast<UILogTabCloseButton*>(sender());679 if (!pButton)680 return;681 if (pButton->machineId().isNull())682 return;683 QVector<QUuid> list;684 list << pButton->machineId();685 removeLogViewerPages(list);686 656 } 687 657 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r101092 r102573 143 143 /** @} */ 144 144 void sltCloseMachineLogs(); 145 void sltTabCloseButtonClick();146 145 void sltCommitDataSignalReceived(); 147 146 void sltPanelContainerHidden();
Note:
See TracChangeset
for help on using the changeset viewer.