Changeset 108357 in vbox
- Timestamp:
- Feb 24, 2025 4:22:55 PM (2 weeks ago)
- svn:sync-xref-src-repo-rev:
- 167717
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp
r108356 r108357 798 798 case UIToolClass_Management: 799 799 { 800 /* A bit of indentation for Machine tools in widget mode: */801 const int iIndent = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) * .5;802 800 /* 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())); 811 802 812 803 /* Draw gradient token: */ … … 815 806 hlGrad.setColorAt(1, highlightColor2); 816 807 pPainter->fillRect(tokenRect, hlGrad); 817 pPainter->restore();818 808 break; 819 809 }
Note:
See TracChangeset
for help on using the changeset viewer.