VirtualBox

Changeset 93995 in vbox


Ignore:
Timestamp:
Feb 28, 2022 9:31:59 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: qt6: QLayout::setMargin (removed in 6) -> QLayout::setContentsMargins (4.3+). bugref:9898

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIRichTextLabel.cpp

    r93115 r93995  
    3838    {
    3939        /* Configure layout: */
    40         pMainLayout->setMargin(0);
     40        pMainLayout->setContentsMargins(0, 0, 0, 0);
    4141
    4242        /* Create text-browser: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r93366 r93995  
    491491    /* Create main-layout: */
    492492    m_pMainLayout = new QGridLayout(centralWidget());
    493     m_pMainLayout->setMargin(0);
     493    m_pMainLayout->setContentsMargins(0, 0, 0, 0);
    494494    m_pMainLayout->setSpacing(0);
    495495
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilmContainer.cpp

    r93990 r93995  
    241241        {
    242242            /* Configure widget-layout: */
    243             pWidgetLayout->setMargin(0);
     243            pWidgetLayout->setContentsMargins(0, 0, 0, 0);
    244244#ifdef VBOX_WS_MAC
    245             pWidgetLayout->setSpacing(5);
     245            pWidgetLayout->setContentsMargins(5, 5, 5, 5);
    246246#else
    247247            pWidgetLayout->setSpacing(qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing) / 2);
     
    293293    {
    294294        /* Configure layout: */
    295         m_pMainLayout->setMargin(0);
     295        m_pMainLayout->setContentsMargins(0, 0, 0, 0);
    296296        m_pMainLayout->setSpacing(0);
    297297    }
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UILineTextEdit.cpp

    r93115 r93995  
    3838{
    3939    QVBoxLayout *pMainLayout = new QVBoxLayout(this);
    40     pMainLayout->setMargin(12);
     40    pMainLayout->setContentsMargins(12, 12, 12, 12);
    4141
    4242    /* We need a text editor */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.cpp

    r93115 r93995  
    282282        {
    283283            /* Configure layout: */
    284             pDescriptionLayout->setMargin(0);
     284            pDescriptionLayout->setContentsMargins(0, 0, 0, 0);
    285285
    286286            /* Add stretch: */
     
    309309            {
    310310                /* Configure layout: */
    311                 pProgressLayout->setMargin(0);
     311                pProgressLayout->setContentsMargins(0, 0, 0, 0);
    312312
    313313                /* Create progress-bar: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportApp.cpp

    r93115 r93995  
    4949        /* Create widgets: */
    5050        QVBoxLayout *pMainLayout = new QVBoxLayout(this);
    51             pMainLayout->setMargin(12);
     51            pMainLayout->setContentsMargins(12, 12, 12, 12);
    5252            m_pCaption = new QLabel(this);
    5353                m_pCaption->setWordWrap(true);
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