VirtualBox

Changeset 85550 in vbox for trunk


Ignore:
Timestamp:
Jul 30, 2020 10:14:44 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9686, bugref:9510. Deselectiong table row when clicked outside of data range

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/monitor/resource/UIResourceMonitor.cpp

    r85548 r85550  
    195195    virtual void resizeEvent(QResizeEvent *pEvent) /* override */;
    196196    virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) /* override */;
     197    virtual void mousePressEvent(QMouseEvent *pEvent) /* override */;
    197198
    198199private slots:
     
    715716    emit sigSelectionChanged(selected, deselected);
    716717    QTableView::selectionChanged(selected, deselected);
     718}
     719
     720void UIVMResourceMonitorTableView::mousePressEvent(QMouseEvent *pEvent)
     721{
     722    if (!indexAt(pEvent->pos()).isValid())
     723        clearSelection();
     724    QTableView::mousePressEvent(pEvent);
    717725}
    718726
     
    13051313        m_pModel->setColumnCaptions(m_columnTitles);
    13061314
    1307 
    13081315    computeMinimumColumnWidths();
    13091316}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette