VirtualBox

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


Ignore:
Timestamp:
Sep 5, 2018 1:08:32 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: VirtualBox Manager UI: Tiny cleanup for Details pane.

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  
    592592
    593593/* 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 */
    607594void UIChooserItem::paintFrameRect(QPainter *pPainter, bool fIsSelected, int iRadius,
    608595                                   const QRect &rectangle)
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.h

    r74078 r74084  
    297297    /** @name Painting stuff.
    298298      * @{ */
    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 
    302299        /** Paints frame @a rectangle using passed @a pPainter.
    303300          * @param  fIsSelected  Brings whether this rectangle should be filled.
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