Changeset 104985 in vbox
- Timestamp:
- Jun 20, 2024 2:26:50 PM (9 months ago)
- svn:sync-xref-src-repo-rev:
- 163595
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDExpertPage.cpp
r103957 r104985 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QDir> 30 31 #include <QGridLayout> 32 #include <QStyle> 31 33 32 34 /* GUI includes: */ … … 79 81 if (m_pFormatVariantGroupBox) 80 82 { 81 QHBoxLayout *pFormatVariantLayout = new QHBoxLayout(m_pFormatVariantGroupBox); 82 pFormatVariantLayout->addWidget(m_pFormatComboBox, 0, Qt::AlignTop); 83 pFormatVariantLayout->addWidget(m_pVariantWidget); 83 QGridLayout *pFormatVariantLayout = new QGridLayout(m_pFormatVariantGroupBox); 84 #ifdef VBOX_WS_MAC 85 pFormatVariantLayout->setSpacing(2 * 5); 86 #else 87 pFormatVariantLayout->setSpacing(2 * qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing)); 88 #endif 89 pFormatVariantLayout->setRowStretch(2, 1); 90 pFormatVariantLayout->setColumnStretch(0, 1); 91 pFormatVariantLayout->addWidget(m_pFormatComboBox, 0, 0); 92 pFormatVariantLayout->addWidget(m_pVariantWidget, 0, 1, 2, 1); 84 93 pMainLayout->addWidget(m_pFormatVariantGroupBox); 85 94 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
r104639 r104985 32 32 #include <QDir> 33 33 #include <QFileInfo> 34 #include <QGridLayout> 34 35 #include <QLabel> 35 36 #include <QRadioButton> … … 197 198 void UIDiskVariantWidget::prepare() 198 199 { 199 Q VBoxLayout *pVariantLayout = new QVBoxLayout(this);200 QGridLayout *pVariantLayout = new QGridLayout(this); 200 201 AssertReturnVoid(pVariantLayout); 202 pVariantLayout->setContentsMargins(0, 0, 0, 0); 203 pVariantLayout->setRowStretch(2, 1); 201 204 m_pFixedCheckBox = new QCheckBox; 202 205 m_pSplitBox = new QCheckBox; 203 206 connect(m_pFixedCheckBox, &QCheckBox::toggled, this, &UIDiskVariantWidget::sltVariantChanged); 204 207 connect(m_pSplitBox, &QCheckBox::toggled, this, &UIDiskVariantWidget::sltVariantChanged); 205 pVariantLayout->addWidget(m_pFixedCheckBox); 206 pVariantLayout->addWidget(m_pSplitBox); 207 pVariantLayout->addStretch(); 208 pVariantLayout->addWidget(m_pFixedCheckBox, 0, 0); 209 pVariantLayout->addWidget(m_pSplitBox, 1, 0); 208 210 sltRetranslateUI(); 209 211 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, … … 605 607 { 606 608 m_pMainLayout = new QVBoxLayout(this); 609 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 607 610 populateFormats(); 608 611 createFormatWidgets(); … … 661 664 662 665 UIDiskFormatsComboBox::UIDiskFormatsComboBox(bool fExpertMode, KDeviceType enmDeviceType, QWidget *pParent /* = 0 */) 663 : Q IComboBox(pParent)666 : QComboBox(pParent) 664 667 , UIDiskFormatBase(enmDeviceType, fExpertMode) 665 668 { … … 675 678 } 676 679 677 connect(this, &Q IComboBox::currentIndexChanged,680 connect(this, &QComboBox::currentIndexChanged, 678 681 this, &UIDiskFormatsComboBox::sigMediumFormatChanged); 679 682 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.h
r103982 r104985 33 33 34 34 /* Qt includes: */ 35 #include <QComboBox> 35 36 #include <QIcon> 36 37 #include <QGroupBox> 37 38 #include <QVector> 38 39 /* Local includes: */40 #include "QIComboBox.h"41 39 42 40 /* Forward declarations: */ … … 225 223 }; 226 224 227 class SHARED_LIBRARY_STUFF UIDiskFormatsComboBox : public Q IComboBox, public UIDiskFormatBase225 class SHARED_LIBRARY_STUFF UIDiskFormatsComboBox : public QComboBox, public UIDiskFormatBase 228 226 { 229 227 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.cpp
r103957 r104985 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QDir> 30 31 #include <QGridLayout> 32 #include <QStyle> 31 33 32 34 /* GUI includes: */ … … 63 65 64 66 m_pFormatVariantGroupBox = new QGroupBox; 65 QHBoxLayout *pFormatVariantLayout = new QHBoxLayout(m_pFormatVariantGroupBox); 66 pFormatVariantLayout->addWidget(m_pFormatComboBox, 0, Qt::AlignTop); 67 pFormatVariantLayout->addWidget(m_pVariantWidget); 67 QGridLayout *pFormatVariantLayout = new QGridLayout(m_pFormatVariantGroupBox); 68 #ifdef VBOX_WS_MAC 69 pFormatVariantLayout->setSpacing(2 * 5); 70 #else 71 pFormatVariantLayout->setSpacing(2 * qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing)); 72 #endif 73 pFormatVariantLayout->setRowStretch(2, 1); 74 pFormatVariantLayout->setColumnStretch(0, 1); 75 pFormatVariantLayout->addWidget(m_pFormatComboBox, 0, 0); 76 pFormatVariantLayout->addWidget(m_pVariantWidget, 0, 1, 2, 1); 68 77 69 78 pMainLayout->addWidget(m_pSizeAndPathGroup);
Note:
See TracChangeset
for help on using the changeset viewer.