VirtualBox

Changeset 108357 in vbox


Ignore:
Timestamp:
Feb 24, 2025 4:22:55 PM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167717
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: Adjusting selection token for Machine and Management tools in widget mode.

File:
1 edited

Legend:

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

    r108356 r108357  
    798798                case UIToolClass_Management:
    799799                {
    800                     /* A bit of indentation for Machine tools in widget mode: */
    801                     const int iIndent = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) * .5;
    802800                    /* Prepare token sub-rect: */
    803                     QRect tokenRect(rectangle.topLeft() + QPoint(iIndent, rectangle.height() / 2 - 2),
    804                                     QSize(5, 5));
    805 
    806                     /* Restrict painter path: */
    807                     pPainter->save();
    808                     QPainterPath path;
    809                     path.addEllipse(tokenRect);
    810                     pPainter->setClipPath(path);
     801                    QRect tokenRect(rectangle.topRight() - QPoint(5, 0), QSize(5, rectangle.height()));
    811802
    812803                    /* Draw gradient token: */
     
    815806                    hlGrad.setColorAt(1, highlightColor2);
    816807                    pPainter->fillRect(tokenRect, hlGrad);
    817                     pPainter->restore();
    818808                    break;
    819809                }
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