- Timestamp:
- May 10, 2018 5:24:37 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 122625
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIVMNamePathSelector.cpp
r72182 r72191 24 24 # include <QHBoxLayout> 25 25 # include <QRegExpValidator> 26 # include <QStyle> 26 27 27 28 /* GUI includes: */ … … 65 66 if (!m_pMainLayout) 66 67 return; 67 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 68 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 69 m_pMainLayout->setSpacing(0); 68 /* Configure layout: */ 69 #ifdef VBOX_WS_MAC 70 m_pMainLayout->setContentsMargins(0, 0, 0, 0); 71 m_pMainLayout->setSpacing(0); 72 #else 73 m_pMainLayout->setContentsMargins(qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin) / 2, 0, 74 qApp->style()->pixelMetric(QStyle::PM_LayoutRightMargin) / 2, 0); 75 m_pMainLayout->setSpacing(qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing) / 2); 76 #endif 70 77 setLayout(m_pMainLayout); 71 78 … … 74 81 { 75 82 m_pMainLayout->addWidget(m_pFileDialogButton); 76 m_pFileDialogButton->setIcon(UIIconPool::iconSet(QString(":/s f_add_16px.png")));83 m_pFileDialogButton->setIcon(UIIconPool::iconSet(QString(":/select_file_16px.png"))); 77 84 connect(m_pFileDialogButton, &QIToolButton::clicked, this, &UIVMNamePathSelector::sltOpenPathSelector); 78 85 } … … 113 120 if (!m_pPath || m_pPath->text() == path) 114 121 return; 115 m_pPath->setText(path); 116 m_pPath->setFixedWidthByText(path); 117 emit sigPathChanged(path); 122 QString nativePath(QDir::toNativeSeparators(path)); 123 m_pPath->setText(nativePath); 124 m_pPath->setFixedWidthByText(nativePath); 125 emit sigPathChanged(nativePath); 118 126 } 119 127 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r72186 r72191 351 351 void UIWizardNewVMPageBasic1::sltPathChanged(const QString &strNewPath) 352 352 { 353 RT_NOREF(strNewPath);353 Q_UNUSED(strNewPath); 354 354 composeMachineFilePath(); 355 355 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r72187 r72191 188 188 void UIWizardNewVMPageExpert::sltPathChanged(const QString &strNewPath) 189 189 { 190 RT_NOREF(strNewPath); /** @todo use this or get rid of it? See also UIWizardNewVMPageBasic1::sltPathChanged(). */190 Q_UNUSED(strNewPath); 191 191 composeMachineFilePath(); 192 192 }
Note:
See TracChangeset
for help on using the changeset viewer.