- Timestamp:
- Jul 29, 2020 10:46:40 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource/UIResourceMonitor.cpp
r85508 r85515 1280 1280 m_columnTitles[VMResourceMonitorColumn_DiskIOWriteTotal] = UIResourceMonitorWidget::tr("Disk Write Total"); 1281 1281 m_columnTitles[VMResourceMonitorColumn_VMExits] = UIResourceMonitorWidget::tr("VM Exits"); 1282 1283 updateColumnsMenu(); 1284 1282 1285 if (m_pShowPerformanceMonitorAction) 1283 1286 m_pShowPerformanceMonitorAction->setText(tr("Show Performance Monitor")); 1284 1287 if (m_pModel) 1285 1288 m_pModel->setColumnCaptions(m_columnTitles); 1289 1290 1286 1291 computeMinimumColumnWidths(); 1287 1292 } … … 1362 1367 } 1363 1368 1364 void UIResourceMonitorWidget::prepareActions() 1365 { 1366 if (!m_pActionPool->action(UIActionIndexST_M_VMResourceMonitor_M_Columns)) 1367 return; 1369 void UIResourceMonitorWidget::updateColumnsMenu() 1370 { 1368 1371 UIMenu *pMenu = m_pActionPool->action(UIActionIndexST_M_VMResourceMonitor_M_Columns)->menu(); 1369 1372 if (!pMenu) 1370 1373 return; 1371 1374 pMenu->clear(); 1372 1375 for (int i = 0; i < VMResourceMonitorColumn_Max; ++i) 1373 1376 { … … 1380 1383 connect(pAction, &QAction::toggled, this, &UIResourceMonitorWidget::sltHandleColumnAction); 1381 1384 } 1385 } 1386 1387 void UIResourceMonitorWidget::prepareActions() 1388 { 1389 updateColumnsMenu(); 1382 1390 m_pShowPerformanceMonitorAction = new QAction(this); 1383 1391 connect(m_pShowPerformanceMonitorAction, &QAction::triggered, this, &UIResourceMonitorWidget::sltHandleShowPerformanceMonitor); 1384 1392 } 1385 1393 -
trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource/UIResourceMonitor.h
r85508 r85515 98 98 void prepareToolBar(); 99 99 void prepareActions(); 100 void updateColumnsMenu(); 100 101 void loadSettings(); 101 102 void loadHiddenColumnList();
Note:
See TracChangeset
for help on using the changeset viewer.