Changeset 88711 in vbox for trunk/src/VBox
- Timestamp:
- Apr 26, 2021 4:48:01 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/activity/overview
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityOverviewWidget.cpp
r88708 r88711 216 216 class UIActivityOverviewItem 217 217 { 218 218 219 public: 220 219 221 UIActivityOverviewItem(const QUuid &uid, const QString &strVMName, KMachineState enmState); 220 222 //yUIActivityOverviewItem(const QUuid &uid); … … 308 310 int columnCount(const QModelIndex &parent = QModelIndex()) const /* override */; 309 311 QVariant data(const QModelIndex &index, int role) const /* override */; 312 void clearData(); 310 313 QVariant headerData(int section, Qt::Orientation orientation, int role) const; 311 314 void setColumnCaptions(const QMap<int, QString>& captions); … … 1028 1031 return gpConverter->toString(m_itemList[index.row()].m_enmMachineState); 1029 1032 return m_itemList[index.row()].m_columnData[index.column()]; 1033 } 1034 1035 void UIActivityOverviewModel::clearData() 1036 { 1037 m_itemList.clear(); 1030 1038 } 1031 1039 … … 1436 1444 connect(&uiCommon(), &UICommon::sigAskToCommitData, 1437 1445 this, &UIVMActivityOverviewWidget::sltSaveSettings); 1446 connect(&uiCommon(), &UICommon::sigAskToDetachCOM, 1447 this, &UIVMActivityOverviewWidget::sltClearCOMData); 1438 1448 } 1439 1449 … … 1576 1586 } 1577 1587 1588 void UIVMActivityOverviewWidget::sltClearCOMData() 1589 { 1590 if (m_pModel) 1591 m_pModel->clearData(); 1592 } 1593 1578 1594 void UIVMActivityOverviewWidget::sltToggleColumnSelectionMenu(bool fChecked) 1579 1595 { -
trunk/src/VBox/Frontends/VirtualBox/src/activity/overview/UIVMActivityOverviewWidget.h
r88708 r88711 87 87 void sltNotRunningVMVisibility(bool fShow); 88 88 void sltSaveSettings(); 89 void sltClearCOMData(); 89 90 90 91 private:
Note:
See TracChangeset
for help on using the changeset viewer.