- Timestamp:
- Feb 12, 2016 9:34:11 AM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformation.cpp
r59484 r59641 44 44 prepareLayout(); 45 45 46 /* Prepare model: */ 47 prepareModel(); 48 46 49 /* Prepare view: */ 47 50 prepareView(); 48 49 /* Prepare model: */50 prepareModel();51 51 } 52 52 … … 69 69 m_pModel = new UIInformationModel(this, m_machine, m_console); 70 70 AssertPtrReturnVoid(m_pModel); 71 72 /* Prepare data for information-model: */ 73 /* General data-item: */ 74 UIInformationDataItem *pGeneral = new UIInformationDataGeneral(m_machine, m_console, m_pModel); 75 AssertPtrReturnVoid(pGeneral); 76 { 77 m_pModel->addItem(pGeneral); 78 } 79 /* System data-item: */ 80 UIInformationDataItem *pSystem = new UIInformationDataSystem(m_machine, m_console, m_pModel); 81 AssertPtrReturnVoid(pSystem); 82 { 83 m_pModel->addItem(pSystem); 84 } 85 /* Display data-item: */ 86 UIInformationDataItem *pDisplay = new UIInformationDataDisplay(m_machine, m_console, m_pModel); 87 AssertPtrReturnVoid(pDisplay); 88 { 89 m_pModel->addItem(pDisplay); 90 } 91 /* Storage data-item: */ 92 UIInformationDataItem *pStorage = new UIInformationDataStorage(m_machine, m_console, m_pModel); 93 AssertPtrReturnVoid(pStorage); 94 { 95 m_pModel->addItem(pStorage); 96 } 97 /* Audio data-item: */ 98 UIInformationDataItem *pAudio = new UIInformationDataAudio(m_machine, m_console, m_pModel); 99 AssertPtrReturnVoid(pAudio); 100 { 101 m_pModel->addItem(pAudio); 102 } 103 /* Network data-item: */ 104 UIInformationDataItem *pNetwork = new UIInformationDataNetwork(m_machine, m_console, m_pModel); 105 AssertPtrReturnVoid(pNetwork); 106 { 107 m_pModel->addItem(pNetwork); 108 } 109 /* Serial ports data-item: */ 110 UIInformationDataItem *pSerialPorts = new UIInformationDataSerialPorts(m_machine, m_console, m_pModel); 111 AssertPtrReturnVoid(pSerialPorts); 112 { 113 m_pModel->addItem(pSerialPorts); 114 } 115 #ifdef VBOX_WITH_PARALLEL_PORTS 116 /* Parallel ports data-item: */ 117 UIInformationDataItem *pParallelPorts = new UIInformationDataParallelPorts(m_machine, m_console, m_pModel); 118 AssertPtrReturnVoid(pParallelPorts); 119 { 120 m_list.append(pParallelPorts); 121 } 122 #endif /* VBOX_WITH_PARALLEL_PORTS */ 123 /* USB data-item: */ 124 UIInformationDataItem *pUSB = new UIInformationDataUSB(m_machine, m_console, m_pModel); 125 AssertPtrReturnVoid(pUSB); 126 { 127 m_pModel->addItem(pUSB); 128 } 129 /* Shared folders data-item: */ 130 UIInformationDataItem *pSharedFolders = new UIInformationDataSharedFolders(m_machine, m_console, m_pModel); 131 AssertPtrReturnVoid(pSharedFolders); 132 { 133 m_pModel->addItem(pSharedFolders); 134 } 71 135 } 72 136 … … 79 143 /* Prepare view: */ 80 144 m_pView->setResizeMode(QListView::Adjust); 81 82 145 /* Create information-delegate item: */ 83 146 UIInformationItem* pItem = new UIInformationItem(m_pView); … … 86 149 m_pView->setItemDelegate(pItem); 87 150 } 151 /* Connect datachanged signal: */ 152 connect(m_pModel, SIGNAL(dataChanged(const QModelIndex, const QModelIndex)), m_pView, SLOT(updateData(const QModelIndex, const QModelIndex))); 88 153 89 154 /* Set model: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformation.h
r59484 r59641 29 29 30 30 /* Forward declartions: */ 31 class UIVMItem;32 31 class QVBoxLayout; 33 32 class UIInformationView;
Note:
See TracChangeset
for help on using the changeset viewer.