儲存庫 vbox 的更動 65337
- 時間撮記:
- 2017-1-16 下午02:05:31 (8 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.cpp
r65274 r65337 26 26 /* GUI includes: */ 27 27 # include "UIInformationConfiguration.h" 28 # include "UIInformationDataItem.h" 28 29 # include "UIInformationItem.h" 29 30 # include "UIInformationView.h" -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.cpp
r65334 r65337 20 20 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 21 21 22 /* Qt includes: */23 # include <QFont>24 # include <QHash>25 # include <QBrush>26 # include <QGraphicsView>27 # include <QGraphicsScene>28 # include <QGraphicsSceneContextMenuEvent>29 30 22 /* GUI includes: */ 31 # include "VBoxGlobal.h"32 # include "UIConverter.h"33 # include "UIExtraDataManager.h"34 23 # include "UIInformationModel.h" 35 24 # include "UIInformationDataItem.h" … … 53 42 } 54 43 55 int UIInformationModel::rowCount(const QModelIndex & /*parent*/) const44 int UIInformationModel::rowCount(const QModelIndex & /* parentIndex */) const 56 45 { 57 46 /* Return row-count: */ … … 61 50 QVariant UIInformationModel::data(const QModelIndex &index, int role) const 62 51 { 63 /* Get row: */64 int row = index.row();65 52 /* Get item at the row: */ 66 UIInformationDataItem *pItem = m_list.at( row);53 UIInformationDataItem *pItem = m_list.at(index.row()); 67 54 /* Return the data for the corresponding role: */ 68 55 return pItem->data(index, role); … … 77 64 } 78 65 79 void UIInformationModel::updateData(const QModelIndex &i dx)66 void UIInformationModel::updateData(const QModelIndex &index) 80 67 { 81 68 /* Emit data-changed signal: */ 82 emit dataChanged(i dx, idx);69 emit dataChanged(index, index); 83 70 } 84 71 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.h
r65334 r65337 20 20 21 21 /* Qt includes: */ 22 #include <QMap>23 #include <QSet>24 #include <QObject>25 #include <QPointer>26 22 #include <QAbstractListModel> 27 23 28 /* GUI includes: */29 #include "UIExtraDataDefs.h"30 #include "UIInformationDataItem.h"31 32 24 /* COM includes: */ 33 # include "C Guest.h"25 # include "COMEnums.h" 34 26 # include "CConsole.h" 35 # include "CDisplay.h"36 27 # include "CMachine.h" 37 # include "COMEnums.h"38 # include "CNetworkAdapter.h"39 # include "CMachineDebugger.h"40 # include "CMediumAttachment.h"41 # include "CSystemProperties.h"42 # include "CStorageController.h"43 28 44 29 /* Forward declarations: */ … … 61 46 ~UIInformationModel(); 62 47 63 /** Returns the row-count for item specified by the @a parentI dx. */64 int rowCount(const QModelIndex &parentIdx = QModelIndex()) const;48 /** Returns the row-count for item specified by the @a parentIndex. */ 49 virtual int rowCount(const QModelIndex &parentIndex = QModelIndex()) const /* override */; 65 50 66 51 /** Returns the data for item specified by the @a index and the @a role. */ 67 QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const;52 virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const /* override */; 68 53 69 54 /** Adds the @a pItem into the model. */ … … 71 56 72 57 /** Updates the data for item specified by the @a index. */ 73 void updateData(const QModelIndex &i dx);58 void updateData(const QModelIndex &index); 74 59 75 60 public slots: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r65274 r65337 26 26 /* GUI includes: */ 27 27 # include "UIInformationRuntime.h" 28 # include "UIInformationDataItem.h" 28 29 # include "UIInformationItem.h" 29 30 # include "UIInformationView.h"
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器