Changeset 72603 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 18, 2018 3:43:38 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123100
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp
r72597 r72603 45 45 46 46 47 UINameAndSystemEditor::UINameAndSystemEditor(QWidget *pParent, bool fChooseLocation /* = false */ , const QString &strGroupName /* = QString() */)47 UINameAndSystemEditor::UINameAndSystemEditor(QWidget *pParent, bool fChooseLocation /* = false */) 48 48 : QIWithRetranslateUI<QWidget>(pParent) 49 49 , m_fChooseLocation(fChooseLocation) … … 59 59 , m_pComboFamily(0) 60 60 , m_pComboType(0) 61 , m_strGroupName(strGroupName)62 61 { 63 62 /* Prepare: */ … … 262 261 pMainLayout->addWidget(m_pPathSelector, iRow++, 1, 1, 2); 263 262 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 268 263 m_pPathSelector->setPath(strDefaultMachineFolder); 269 264 m_pPathSelector->setDefaultPath(strDefaultMachineFolder); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.h
r72594 r72603 56 56 57 57 /** Constructs VM parameters editor passing @a pParent to the base-class. 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()); 58 * @param fChooseFullPath Controls whether we should propose to choose location. */ 59 UINameAndSystemEditor(QWidget *pParent, bool fChooseLocation = false); 61 60 62 61 /** Returns the VM name. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r72594 r72603 328 328 { 329 329 m_pLabel = new QIRichTextLabel(this); 330 m_pNameAndSystemEditor = new UINameAndSystemEditor(this, true , strGroup);330 m_pNameAndSystemEditor = new UINameAndSystemEditor(this, true); 331 331 pMainLayout->addWidget(m_pLabel); 332 332 pMainLayout->addWidget(m_pNameAndSystemEditor); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r72594 r72603 55 55 QHBoxLayout *pNameAndSystemCntLayout = new QHBoxLayout(m_pNameAndSystemCnt); 56 56 { 57 m_pNameAndSystemEditor = new UINameAndSystemEditor(m_pNameAndSystemCnt, true , strGroup);57 m_pNameAndSystemEditor = new UINameAndSystemEditor(m_pNameAndSystemCnt, true); 58 58 pNameAndSystemCntLayout->addWidget(m_pNameAndSystemEditor); 59 59 }
Note:
See TracChangeset
for help on using the changeset viewer.