VirtualBox

Changeset 101398 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 10, 2023 6:07:59 AM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159428
Message:

FE/Qt: Fixes for QITableWidget and QITreeWidget; Sub-class painting should go after base-class painting, not before.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/extensions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITableWidget.cpp

    r98103 r101398  
    337337void QITableWidget::paintEvent(QPaintEvent *pEvent)
    338338{
     339    /* Call to base-class: */
     340    QTableWidget::paintEvent(pEvent);
     341
    339342    /* Create item painter: */
    340343    QPainter painter;
     
    348351    /* Close item painter: */
    349352    painter.end();
    350 
    351     /* Call to base-class: */
    352     QTableWidget::paintEvent(pEvent);
    353353}
    354354
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITreeWidget.cpp

    r98103 r101398  
    471471void QITreeWidget::paintEvent(QPaintEvent *pEvent)
    472472{
     473    /* Call to base-class: */
     474    QTreeWidget::paintEvent(pEvent);
     475
    473476    /* Create item painter: */
    474477    QPainter painter;
     
    485488    /* Close item painter: */
    486489    painter.end();
    487 
    488     /* Call to base-class: */
    489     QTreeWidget::paintEvent(pEvent);
    490490}
    491491
Note: See TracChangeset for help on using the changeset viewer.

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