- Timestamp:
- Feb 17, 2016 9:18:55 AM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformation.cpp
r59702 r59709 125 125 AssertPtrReturnVoid(pParallelPorts); 126 126 { 127 m_ list.append(pParallelPorts);127 m_pModel->addItem(pParallelPorts); 128 128 } 129 129 #endif /* VBOX_WITH_PARALLEL_PORTS */ … … 154 154 m_pView->setResizeMode(QListView::Adjust); 155 155 /* Create information-delegate item: */ 156 UIInformationItem *pItem = new UIInformationItem(m_pView);156 UIInformationItem *pItem = new UIInformationItem(m_pView); 157 157 AssertPtrReturnVoid(pItem); 158 158 { … … 160 160 } 161 161 /* Connect datachanged signal: */ 162 connect(m_pModel, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)), m_pView, SLOT(updateData(const QModelIndex&, const QModelIndex&))); 162 connect(m_pModel, SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)), 163 m_pView, SLOT(updateData(const QModelIndex&, const QModelIndex&))); 163 164 164 165 /* Set model: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformation.h
r59702 r59709 28 28 #include "CConsole.h" 29 29 30 /* Forward declar tions: */30 /* Forward declarations: */ 31 31 class QVBoxLayout; 32 32 class UIInformationView; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationItem.cpp
r59643 r59709 110 110 setName(index.data().toString()); 111 111 setIcon(index.data(Qt::DecorationRole).toString()); 112 setText(index.data(Qt::UserRole +1).value<UITextTable>());113 m_type = index.data(Qt::UserRole +2).value<InformationElementType>();112 setText(index.data(Qt::UserRole + 1).value<UITextTable>()); 113 m_type = index.data(Qt::UserRole + 2).value<InformationElementType>(); 114 114 } 115 115
Note:
See TracChangeset
for help on using the changeset viewer.