Changeset 81562 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 28, 2019 2:39:20 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 134301
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp
r80932 r81562 110 110 } 111 111 112 113 112 void UIMediumSelector::retranslateUi() 114 113 { … … 192 191 QString(":/%1_add_disabled_32px.png").arg(strPrefix), 193 192 QString(":/%1_add_disabled_16px.png").arg(strPrefix))); 194 195 193 } 196 194 … … 204 202 QString(":/%1_create_disabled_16px.png").arg(strPrefix))); 205 203 } 206 207 204 208 205 m_pActionRefresh = new QAction(this); … … 261 258 if (m_pLeaveEmptyButton) 262 259 connect(m_pLeaveEmptyButton, &QPushButton::clicked, this, &UIMediumSelector::sltButtonLeaveEmpty); 263 264 260 265 261 if (m_pSearchWidget) … … 554 550 UIMediumItem *pMediumItem = searchItem(0, uMediumID); 555 551 if (pMediumItem) 556 {557 552 m_pTreeWidget->setCurrentItem(pMediumItem); 558 559 }560 553 } 561 554 … … 617 610 if (m_pParent) 618 611 UICommon::centerWidget(this, m_pParent, false); 619 620 612 } 621 613 … … 634 626 m_pNotAttachedSubTreeRoot = 0; 635 627 QVector<UIMediumItem*> menuItemVector; 636 637 628 foreach (const QUuid &uMediumID, uiCommon().mediumIDs()) 638 629 { … … 673 664 if (m_pAttachedSubTreeRoot) 674 665 m_pTreeWidget->expandItem(m_pAttachedSubTreeRoot); 675 676 666 if (m_pNotAttachedSubTreeRoot) 677 667 m_pTreeWidget->expandItem(m_pNotAttachedSubTreeRoot); 678 679 668 m_pTreeWidget->resizeColumnToContents(0); 680 669 } … … 703 692 return 0; 704 693 if (!pParent) 705 { 706 pParent = m_pTreeWidget->invisibleRootItem(); 707 } 694 pParent = m_pTreeWidget->invisibleRootItem(); 708 695 if (!pParent) 709 696 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.