VirtualBox

Changeset 91155 in vbox


Ignore:
Timestamp:
Sep 8, 2021 1:58:08 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996. build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMSummaryPage.cpp

    r91153 r91155  
    2727#include "UIIconPool.h"
    2828#include "UIMessageCenter.h"
     29#include "UITranslator.h"
    2930#include "UIWizardNewVMSummaryPage.h"
    3031#include "UIWizardDiskEditors.h"
     
    300301int UIWizardNewVMSummaryModel::columnCount(const QModelIndex &parentIndex /* = QModelIndex() */) const
    301302{
     303    Q_UNUSED(parentIndex);
    302304    return 2;
     305#if 0
    303306    AssertReturn(m_pRootItem, 0);
    304307    if (parentIndex.isValid())
    305308    {
    306309        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         // }
    312310        if (pParent)
    313311            return pParent->columnCount();
     
    315313    }
    316314    return m_pRootItem->columnCount();
     315#endif
    317316}
    318317
     
    361360    pHardwareRoot->addChild(UIWizardNewVM::tr("Base Memory"), pWizard->memorySize());
    362361    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);
    367366
    368367}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette