Changeset 65333 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 16, 2017 1:57:25 PM (8 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/UIInformationModel.cpp
r61035 r65333 37 37 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 38 38 39 39 40 UIInformationModel::UIInformationModel(QObject *pParent, const CMachine &machine, const CConsole &console) 40 41 : QAbstractListModel(pParent) … … 42 43 , m_console(console) 43 44 { 44 /* Prepare information-model: */45 /* Prepare: */ 45 46 prepare(); 46 47 } … … 112 113 void UIInformationModel::updateData(UIInformationDataItem *pItem) 113 114 { 114 /* Update sdata: */115 /* Update data: */ 115 116 AssertPtrReturnVoid(pItem); 116 117 int iRow = m_list.indexOf(pItem); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.h
r60021 r65333 45 45 class UIInformationDataItem; 46 46 47 47 48 /** QAbstractListModel extension 48 49 * providing GUI with information-model for view in session-information window. */ … … 53 54 public: 54 55 55 /** Constructs information-model passing @a pParent to base-class.56 * @param machine ismachine reference.57 * @param console ismachine console reference. */56 /** Constructs information-model passing @a pParent to the base-class. 57 * @param machine Brings the machine reference. 58 * @param console Brings the machine console reference. */ 58 59 UIInformationModel(QObject *pParent, const CMachine &machine, const CConsole &console); 59 60 60 /** Destructs information-model. */ 61 61 ~UIInformationModel(); 62 62 63 /** Returns the row-count for item specified by @a parentIdx. */63 /** Returns the row-count for item specified by the @a parentIdx. */ 64 64 int rowCount(const QModelIndex &parentIdx = QModelIndex()) const; 65 65 66 /** Returns data for item specified by @a idx forthe @a role. */66 /** Returns the data for item specified by the @a index and the @a role. */ 67 67 QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const; 68 68 69 /** Adds the item. */69 /** Adds the @a pItem into the model. */ 70 70 void addItem(UIInformationDataItem *pItem); 71 71 72 /** Updates Data. */72 /** Updates the data for item specified by the @a index. */ 73 73 void updateData(const QModelIndex &idx); 74 74 75 75 public slots: 76 77 /** Updates the data for the specified @a pItem. */ 76 78 void updateData(UIInformationDataItem *pItem); 77 79 78 80 private: 79 81 80 /** Prepares information-model. */82 /** Prepares all. */ 81 83 void prepare(); 82 84 … … 84 86 QHash<int, QByteArray> roleNames() const; 85 87 86 /** Holds the machine instance. */88 /** Holds the machine reference. */ 87 89 CMachine m_machine; 88 /** Holds the console instance. */90 /** Holds the machine console reference. */ 89 91 CConsole m_console; 90 92 /** Holds the list of instances of information-data items. */
Note:
See TracChangeset
for help on using the changeset viewer.