VirtualBox

Ignore:
Timestamp:
Nov 2, 2023 9:20:27 AM (16 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10543: Bits missed in r159802.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp

    r101708 r101709  
    118118    if (m_pLabelType)
    119119        m_pLabelType->setEnabled(fEnabled);
    120     if (m_pIconType)
    121         m_pIconType->setEnabled(fEnabled);
    122120    if (m_pComboFamily)
    123121        m_pComboFamily->setEnabled(fEnabled);
    124122    if (m_pComboType)
    125123        m_pComboType->setEnabled(fEnabled);
     124    if (m_pIconType)
     125        m_pIconType->setEnabled(fEnabled);
    126126}
    127127
    128128void UINameAndSystemEditor::setEditionSelectorEnabled(bool fEnabled)
    129129{
     130    if (m_pLabelEdition)
     131        m_pLabelEdition->setEnabled(fEnabled);
    130132    if (m_pComboEdition)
    131133        m_pComboEdition->setEnabled(fEnabled);
    132     if (m_pLabelEdition)
    133         m_pLabelEdition->setEnabled(fEnabled);
    134134}
    135135
     
    291291    if (m_pLabelFamily)
    292292        m_pLabelFamily->setText(tr("&Type:"));
     293    if (m_pLabelSubtype)
     294        m_pLabelSubtype->setText(tr("&Subtype:"));
    293295    if (m_pLabelType)
    294296        m_pLabelType->setText(tr("&Version:"));
    295     if (m_pLabelSubtype)
    296         m_pLabelSubtype->setText(tr("&Subtype:"));
    297297
    298298    if (m_pEditorName)
     
    413413                m_pLabelName->setAlignment(Qt::AlignRight);
    414414                m_pLabelName->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
    415 
    416415                m_pLayout->addWidget(m_pLabelName, iRow, 0);
    417416            }
     
    434433                m_pLabelPath->setAlignment(Qt::AlignRight);
    435434                m_pLabelPath->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
    436 
    437435                m_pLayout->addWidget(m_pLabelPath, iRow, 0);
    438436            }
     
    445443                m_pSelectorPath->setPath(strDefaultMachineFolder);
    446444                m_pSelectorPath->setDefaultPath(strDefaultMachineFolder);
    447 
    448445                m_pLayout->addWidget(m_pSelectorPath, iRow, 1, 1, 2);
    449446            }
     
    506503                m_pLabelFamily->setAlignment(Qt::AlignRight);
    507504                m_pLabelFamily->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
    508 
    509505                m_pLayout->addWidget(m_pLabelFamily, iRow, 0);
    510506            }
     
    524520                m_pLabelSubtype->setAlignment(Qt::AlignRight);
    525521                m_pLabelSubtype->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
    526 
    527522                m_pLayout->addWidget(m_pLabelSubtype, iRow, 0);
    528523            }
     
    542537                m_pLabelType->setAlignment(Qt::AlignRight);
    543538                m_pLabelType->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
    544 
    545539                m_pLayout->addWidget(m_pLabelType, iRow, 0);
    546540            }
     
    599593        connect(m_pSelectorPath, &UIFilePathSelector::pathChanged,
    600594                this, &UINameAndSystemEditor::sigPathChanged);
     595    if (m_pSelectorImage)
     596        connect(m_pSelectorImage, &UIFilePathSelector::pathChanged,
     597                this, &UINameAndSystemEditor::sigImageChanged);
     598    if (m_pComboEdition)
     599        connect(m_pComboEdition, &QComboBox::currentIndexChanged,
     600                this, &UINameAndSystemEditor::sltSelectedEditionsChanged);
    601601    if (m_pComboFamily)
    602602        connect(m_pComboFamily, &QComboBox::currentIndexChanged,
     
    608608        connect(m_pComboType, &QComboBox::currentIndexChanged,
    609609                this, &UINameAndSystemEditor::sltTypeChanged);
    610     if (m_pSelectorImage)
    611         connect(m_pSelectorImage, &UIFilePathSelector::pathChanged,
    612                 this, &UINameAndSystemEditor::sigImageChanged);
    613     if (m_pComboEdition)
    614         connect(m_pComboEdition, &QComboBox::currentIndexChanged,
    615                 this, &UINameAndSystemEditor::sltSelectedEditionsChanged);
    616610}
    617611
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