Changeset 101709 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 2, 2023 9:20:27 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp
r101708 r101709 118 118 if (m_pLabelType) 119 119 m_pLabelType->setEnabled(fEnabled); 120 if (m_pIconType)121 m_pIconType->setEnabled(fEnabled);122 120 if (m_pComboFamily) 123 121 m_pComboFamily->setEnabled(fEnabled); 124 122 if (m_pComboType) 125 123 m_pComboType->setEnabled(fEnabled); 124 if (m_pIconType) 125 m_pIconType->setEnabled(fEnabled); 126 126 } 127 127 128 128 void UINameAndSystemEditor::setEditionSelectorEnabled(bool fEnabled) 129 129 { 130 if (m_pLabelEdition) 131 m_pLabelEdition->setEnabled(fEnabled); 130 132 if (m_pComboEdition) 131 133 m_pComboEdition->setEnabled(fEnabled); 132 if (m_pLabelEdition)133 m_pLabelEdition->setEnabled(fEnabled);134 134 } 135 135 … … 291 291 if (m_pLabelFamily) 292 292 m_pLabelFamily->setText(tr("&Type:")); 293 if (m_pLabelSubtype) 294 m_pLabelSubtype->setText(tr("&Subtype:")); 293 295 if (m_pLabelType) 294 296 m_pLabelType->setText(tr("&Version:")); 295 if (m_pLabelSubtype)296 m_pLabelSubtype->setText(tr("&Subtype:"));297 297 298 298 if (m_pEditorName) … … 413 413 m_pLabelName->setAlignment(Qt::AlignRight); 414 414 m_pLabelName->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); 415 416 415 m_pLayout->addWidget(m_pLabelName, iRow, 0); 417 416 } … … 434 433 m_pLabelPath->setAlignment(Qt::AlignRight); 435 434 m_pLabelPath->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); 436 437 435 m_pLayout->addWidget(m_pLabelPath, iRow, 0); 438 436 } … … 445 443 m_pSelectorPath->setPath(strDefaultMachineFolder); 446 444 m_pSelectorPath->setDefaultPath(strDefaultMachineFolder); 447 448 445 m_pLayout->addWidget(m_pSelectorPath, iRow, 1, 1, 2); 449 446 } … … 506 503 m_pLabelFamily->setAlignment(Qt::AlignRight); 507 504 m_pLabelFamily->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); 508 509 505 m_pLayout->addWidget(m_pLabelFamily, iRow, 0); 510 506 } … … 524 520 m_pLabelSubtype->setAlignment(Qt::AlignRight); 525 521 m_pLabelSubtype->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); 526 527 522 m_pLayout->addWidget(m_pLabelSubtype, iRow, 0); 528 523 } … … 542 537 m_pLabelType->setAlignment(Qt::AlignRight); 543 538 m_pLabelType->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); 544 545 539 m_pLayout->addWidget(m_pLabelType, iRow, 0); 546 540 } … … 599 593 connect(m_pSelectorPath, &UIFilePathSelector::pathChanged, 600 594 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); 601 601 if (m_pComboFamily) 602 602 connect(m_pComboFamily, &QComboBox::currentIndexChanged, … … 608 608 connect(m_pComboType, &QComboBox::currentIndexChanged, 609 609 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);616 610 } 617 611
Note:
See TracChangeset
for help on using the changeset viewer.