VirtualBox

Changeset 108042 in vbox


Ignore:
Timestamp:
Feb 3, 2025 6:04:17 PM (3 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167317
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: Proper way of painting extra-button; 2nd part related to arrow direction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp

    r108041 r108042  
    922922
    923923    /* Paint arrow: */
    924     pPainter->drawLine(subRect.topLeft() + QPoint(3, 3), QPoint(subRect.right() - 2, subRect.center().y()));
    925     pPainter->drawLine(subRect.bottomLeft() + QPoint(3, -3), QPoint(subRect.right() - 2, subRect.center().y()));
     924    if (!model()->showItemNames())
     925    {
     926        pPainter->drawLine(subRect.topLeft() + QPoint(3, 3), QPoint(subRect.right() - 2, subRect.center().y()));
     927        pPainter->drawLine(subRect.bottomLeft() + QPoint(3, -3), QPoint(subRect.right() - 2, subRect.center().y()));
     928    }
     929    else
     930    {
     931        pPainter->drawLine(subRect.topRight() + QPoint(-3, 3), QPoint(subRect.left() + 3, subRect.center().y()));
     932        pPainter->drawLine(subRect.bottomRight() + QPoint(-3, -3), QPoint(subRect.left() + 3, subRect.center().y()));
     933    }
    926934
    927935    /* Restore painter: */
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