- Timestamp:
- Jul 30, 2020 10:14:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource/UIResourceMonitor.cpp
r85548 r85550 195 195 virtual void resizeEvent(QResizeEvent *pEvent) /* override */; 196 196 virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) /* override */; 197 virtual void mousePressEvent(QMouseEvent *pEvent) /* override */; 197 198 198 199 private slots: … … 715 716 emit sigSelectionChanged(selected, deselected); 716 717 QTableView::selectionChanged(selected, deselected); 718 } 719 720 void UIVMResourceMonitorTableView::mousePressEvent(QMouseEvent *pEvent) 721 { 722 if (!indexAt(pEvent->pos()).isValid()) 723 clearSelection(); 724 QTableView::mousePressEvent(pEvent); 717 725 } 718 726 … … 1305 1313 m_pModel->setColumnCaptions(m_columnTitles); 1306 1314 1307 1308 1315 computeMinimumColumnWidths(); 1309 1316 }
Note:
See TracChangeset
for help on using the changeset viewer.