Changeset 74084 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 5, 2018 1:08:32 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp
r74078 r74084 592 592 593 593 /* static */ 594 void UIChooserItem::configurePainterShape(QPainter *pPainter, const QStyleOptionGraphicsItem *pOption, int iRadius)595 {596 /* Rounded corners? */597 if (iRadius)598 {599 /* Setup clipping: */600 QPainterPath roundedPath;601 roundedPath.addRoundedRect(pOption->rect, iRadius, iRadius);602 pPainter->setClipPath(roundedPath);603 }604 }605 606 /* static */607 594 void UIChooserItem::paintFrameRect(QPainter *pPainter, bool fIsSelected, int iRadius, 608 595 const QRect &rectangle) -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.h
r74078 r74084 297 297 /** @name Painting stuff. 298 298 * @{ */ 299 /** Configures @a pPainter shape with certain @a pOptions and specified @a iRadius. */300 static void configurePainterShape(QPainter *pPainter, const QStyleOptionGraphicsItem *pOptions, int iRadius);301 302 299 /** Paints frame @a rectangle using passed @a pPainter. 303 300 * @param fIsSelected Brings whether this rectangle should be filled.
Note:
See TracChangeset
for help on using the changeset viewer.