VirtualBox

Changeset 92430 in vbox


Ignore:
Timestamp:
Nov 15, 2021 2:49:05 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10141. Migrating medium selector's menu to the action pool.

File:
1 edited

Legend:

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

    r92428 r92430  
    115115void UIMediumSelector::retranslateUi()
    116116{
    117     if (m_pMainMenu)
    118         m_pMainMenu->setTitle(tr("&Medium"));
    119 
    120117    if (m_pCancelButton)
    121118        m_pCancelButton->setText(tr("&Cancel"));
     
    332329        return;
    333330
    334     m_pMainMenu = menuBar()->addMenu(tr("&Medium"));
     331    if (m_pActionPool && m_pActionPool->action(UIActionIndex_M_MediumSelector))
     332    {
     333        m_pMainMenu = m_pActionPool->action(UIActionIndex_M_MediumSelector)->menu();
     334        if (m_pMainMenu)
     335            menuBar()->addMenu(m_pMainMenu);
     336    }
    335337
    336338    m_pToolBar = new QIToolBar;
     
    571573        const QRect screenGeometry = gpDesktop->screenGeometry(iHostScreen);
    572574        if (screenGeometry.isValid())
    573             proposedSize = screenGeometry.size() * 5 / 15;
     575            proposedSize = screenGeometry.size() / 2.5;
    574576    }
    575577    /* Fallback to default size if we failed: */
Note: See TracChangeset for help on using the changeset viewer.

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