- Timestamp:
- Jun 18, 2018 12:46:05 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp
r72314 r72594 45 45 46 46 47 UINameAndSystemEditor::UINameAndSystemEditor(QWidget *pParent, bool fChooseLocation /* = false */ )47 UINameAndSystemEditor::UINameAndSystemEditor(QWidget *pParent, bool fChooseLocation /* = false */, const QString &strGroupName /* = QString() */) 48 48 : QIWithRetranslateUI<QWidget>(pParent) 49 49 , m_fChooseLocation(fChooseLocation) … … 59 59 , m_pComboFamily(0) 60 60 , m_pComboType(0) 61 , m_strGroupName(strGroupName) 61 62 { 62 63 /* Prepare: */ … … 261 262 pMainLayout->addWidget(m_pPathSelector, iRow++, 1, 1, 2); 262 263 QString strDefaultMachineFolder = vboxGlobal().virtualBox().GetSystemProperties().GetDefaultMachineFolder(); 264 /* Add the group name to the default machine path: */ 265 // if (!m_strGroupName.isEmpty() && m_strGroupName != "/") 266 // strDefaultMachineFolder += m_strGroupName; 267 263 268 m_pPathSelector->setPath(strDefaultMachineFolder); 264 269 m_pPathSelector->setDefaultPath(strDefaultMachineFolder); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.h
r72279 r72594 56 56 57 57 /** Constructs VM parameters editor passing @a pParent to the base-class. 58 * @param fChooseFullPath Brings whether we should propose to choose location. */ 59 UINameAndSystemEditor(QWidget *pParent, bool fChooseLocation = false); 58 * @param fChooseFullPath Controls whether we should propose to choose location. 59 * @param strGroupName is used while setting the path and defaultPath of the path selection widget. */ 60 UINameAndSystemEditor(QWidget *pParent, bool fChooseLocation = false, const QString &strGroupName = QString()); 60 61 61 62 /** Returns the VM name. */ … … 129 130 /** Holds the VM OS type combo instance. */ 130 131 QComboBox *m_pComboType; 132 QString m_strGroupName; 131 133 }; 132 134 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r72314 r72594 328 328 { 329 329 m_pLabel = new QIRichTextLabel(this); 330 m_pNameAndSystemEditor = new UINameAndSystemEditor(this, true );330 m_pNameAndSystemEditor = new UINameAndSystemEditor(this, true, strGroup); 331 331 pMainLayout->addWidget(m_pLabel); 332 332 pMainLayout->addWidget(m_pNameAndSystemEditor); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r72502 r72594 55 55 QHBoxLayout *pNameAndSystemCntLayout = new QHBoxLayout(m_pNameAndSystemCnt); 56 56 { 57 m_pNameAndSystemEditor = new UINameAndSystemEditor(m_pNameAndSystemCnt, true );57 m_pNameAndSystemEditor = new UINameAndSystemEditor(m_pNameAndSystemCnt, true, strGroup); 58 58 pNameAndSystemCntLayout->addWidget(m_pNameAndSystemEditor); 59 59 }
Note:
See TracChangeset
for help on using the changeset viewer.