VirtualBox

Changeset 81562 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 28, 2019 2:39:20 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134301
Message:

FE/Qt: Small cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp

    r80932 r81562  
    110110}
    111111
    112 
    113112void UIMediumSelector::retranslateUi()
    114113{
     
    192191                                                      QString(":/%1_add_disabled_32px.png").arg(strPrefix),
    193192                                                      QString(":/%1_add_disabled_16px.png").arg(strPrefix)));
    194 
    195193    }
    196194
     
    204202                                                         QString(":/%1_create_disabled_16px.png").arg(strPrefix)));
    205203    }
    206 
    207204
    208205    m_pActionRefresh = new QAction(this);
     
    261258    if (m_pLeaveEmptyButton)
    262259        connect(m_pLeaveEmptyButton, &QPushButton::clicked, this, &UIMediumSelector::sltButtonLeaveEmpty);
    263 
    264260
    265261    if (m_pSearchWidget)
     
    554550    UIMediumItem *pMediumItem = searchItem(0, uMediumID);
    555551    if (pMediumItem)
    556     {
    557552        m_pTreeWidget->setCurrentItem(pMediumItem);
    558 
    559     }
    560553}
    561554
     
    617610    if (m_pParent)
    618611        UICommon::centerWidget(this, m_pParent, false);
    619 
    620612}
    621613
     
    634626    m_pNotAttachedSubTreeRoot = 0;
    635627    QVector<UIMediumItem*> menuItemVector;
    636 
    637628    foreach (const QUuid &uMediumID, uiCommon().mediumIDs())
    638629    {
     
    673664    if (m_pAttachedSubTreeRoot)
    674665        m_pTreeWidget->expandItem(m_pAttachedSubTreeRoot);
    675 
    676666    if (m_pNotAttachedSubTreeRoot)
    677667        m_pTreeWidget->expandItem(m_pNotAttachedSubTreeRoot);
    678 
    679668    m_pTreeWidget->resizeColumnToContents(0);
    680669}
     
    703692        return 0;
    704693    if (!pParent)
    705     {
    706         pParent = m_pTreeWidget->invisibleRootItem();
    707     }
     694         pParent = m_pTreeWidget->invisibleRootItem();
    708695    if (!pParent)
    709696        return 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette