VirtualBox

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


Ignore:
Timestamp:
Nov 5, 2018 9:53:07 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Manage escape shortcut in file manager dialog

Location:
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.cpp

    r75246 r75247  
    194194
    195195    /* Configure layout: */
    196     m_pMainLayout->setSpacing(0);
    197196    m_pMainLayout->setContentsMargins(0, 0, 0, 0);
     197#ifdef VBOX_WS_MAC
     198    m_pMainLayout->setSpacing(10);
     199#else
     200    m_pMainLayout->setSpacing(qApp->style()->pixelMetric(QStyle::PM_LayoutVerticalSpacing) / 2);
     201#endif
    198202
    199203    if (m_fShowToolbar)
     
    210214
    211215    QHBoxLayout *pFileTableContainerLayout = new QHBoxLayout;
    212     pFileTableContainerLayout->setSpacing(0);
    213216    pFileTableContainerLayout->setContentsMargins(0, 0, 0, 0);
     217#ifdef VBOX_WS_MAC
     218    pFileTableContainerLayout->setSpacing(10);
     219#else
     220    pFileTableContainerLayout->setSpacing(qApp->style()->pixelMetric(QStyle::PM_LayoutVerticalSpacing) / 2);
     221#endif
    214222
    215223    QWidget *pTopWidget = new QWidget;
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerDialog.cpp

    r75136 r75247  
    100100        //setWidgetToolbar(pWidget->toolbar());
    101101#endif
    102         // connect(pWidget, &UIGuestControlWidget::sigSetCloseButtonShortCut,
    103         //         this, &UIGuestControlWidget::sltSetCloseButtonShortCut);
     102        connect(pWidget, &UIGuestControlFileManager::sigSetCloseButtonShortCut,
     103                this, &UIGuestControlFileManagerDialog::sltSetCloseButtonShortCut);
    104104
    105105        /* Add into layout: */
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