Changeset 80356 in vbox
- Timestamp:
- Aug 20, 2019 11:50:29 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 132821
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.cpp
r80355 r80356 31 31 #include "UIIconPool.h" 32 32 #include "UIInformationConfiguration.h" 33 33 #include "UIVirtualBoxEventHandler.h" 34 34 35 35 UIInformationConfiguration::UIInformationConfiguration(QWidget *pParent, const CMachine &machine, const CConsole &console) … … 49 49 retranslateUi(); 50 50 createTableItems(); 51 52 connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigMachineDataChange, 53 this, &UIInformationConfiguration::sltMachineDataChanged); 54 } 55 56 void UIInformationConfiguration::sltMachineDataChanged() 57 { 58 resetTable(); 59 createTableItems(); 51 60 } 52 61 53 62 UIInformationConfiguration::~UIInformationConfiguration() 54 63 { 55 qDeleteAll(m_tableItems);56 m_tableItems.clear();57 64 } 58 65 … … 203 210 m_pTableWidget->setItem(iRow, 2, pCol2); 204 211 } 212 213 void UIInformationConfiguration::resetTable() 214 { 215 if (m_pTableWidget) 216 { 217 m_pTableWidget->clear(); 218 m_pTableWidget->setRowCount(0); 219 m_pTableWidget->setColumnCount(m_iColumCount); 220 } 221 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.h
r80354 r80356 61 61 void retranslateUi() /* override */; 62 62 63 private slots: 64 65 void sltMachineDataChanged(); 66 63 67 private: 64 68 … … 72 76 const QFontMetrics &fontMetrics, int &iMaxColumn1Length); 73 77 78 void resetTable(); 74 79 /** Holds the machine instance. */ 75 80 CMachine m_machine;
Note:
See TracChangeset
for help on using the changeset viewer.