Changeset 91155 in vbox
- Timestamp:
- Sep 8, 2021 1:58:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMSummaryPage.cpp
r91153 r91155 27 27 #include "UIIconPool.h" 28 28 #include "UIMessageCenter.h" 29 #include "UITranslator.h" 29 30 #include "UIWizardNewVMSummaryPage.h" 30 31 #include "UIWizardDiskEditors.h" … … 300 301 int UIWizardNewVMSummaryModel::columnCount(const QModelIndex &parentIndex /* = QModelIndex() */) const 301 302 { 303 Q_UNUSED(parentIndex); 302 304 return 2; 305 #if 0 303 306 AssertReturn(m_pRootItem, 0); 304 307 if (parentIndex.isValid()) 305 308 { 306 309 UIWizardNewVMSummaryItem *pParent = static_cast<UIWizardNewVMSummaryItem*>(parentIndex.internalPointer()); 307 // if (pParent && pParent->childItem(0))308 // {309 // printf("sasadasd %d\n", pParent->childItem(0)->columnCount());310 // return pParent->childItem(0)->columnCount();311 // }312 310 if (pParent) 313 311 return pParent->columnCount(); … … 315 313 } 316 314 return m_pRootItem->columnCount(); 315 #endif 317 316 } 318 317 … … 361 360 pHardwareRoot->addChild(UIWizardNewVM::tr("Base Memory"), pWizard->memorySize()); 362 361 pHardwareRoot->addChild(UIWizardNewVM::tr("Processor(s)"), pWizard->CPUCount()); 363 // UIWizardNewVMSummaryItem *pDiskRoot = new UIWizardNewVMSummaryItem(m_pRootItem,UIWizardNewVM::tr("Disk"), QVariant(),364 //UIIconPool::iconSet(":/hd_16px.png"));365 366 //Q_UNUSED(pDiskRoot);362 UIWizardNewVMSummaryItem *pDiskRoot = m_pRootItem->addChild(UIWizardNewVM::tr("Disk"), QVariant(), 363 UIIconPool::iconSet(":/hd_16px.png")); 364 pDiskRoot->addChild(UIWizardNewVM::tr("Disk Size"), UITranslator::formatSize(pWizard->mediumSize())); 365 Q_UNUSED(pDiskRoot); 367 366 368 367 }
Note:
See TracChangeset
for help on using the changeset viewer.