- Timestamp:
- Oct 8, 2018 4:25:36 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/details
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp
r74685 r74689 238 238 /* Paint background: */ 239 239 paintBackground(pPainter, pOptions); 240 /* Paint frame rectangle: */241 paintFrame Rect(pPainter, pOptions);240 /* Paint frame: */ 241 paintFrame(pPainter, pOptions); 242 242 /* Paint element info: */ 243 243 paintElementInfo(pPainter, pOptions); … … 700 700 } 701 701 702 void UIDetailsElement::paintFrame Rect(QPainter *pPainter, const QStyleOptionGraphicsItem *pOptions) const702 void UIDetailsElement::paintFrame(QPainter *pPainter, const QStyleOptionGraphicsItem *pOptions) const 703 703 { 704 704 /* Save painter: */ … … 709 709 const int iHeadHeight = 2 * iMargin + m_iMinimumHeaderHeight; 710 710 const QRect optionRect = pOptions->rect; 711 const QRect fullRect= m_fAnimationRunning712 ? QRect(optionRect.topLeft(), QSize(optionRect.width(), iHeadHeight + m_iAdditionalHeight))713 : optionRect;711 const QRect rectangle = m_fAnimationRunning 712 ? QRect(optionRect.topLeft(), QSize(optionRect.width(), iHeadHeight + m_iAdditionalHeight)) 713 : optionRect; 714 714 715 715 /* Paint frame: */ … … 718 718 pen.setWidth(0); 719 719 pPainter->setPen(pen); 720 pPainter->drawRect(fullRect); 720 pPainter->drawLine(rectangle.topLeft(), rectangle.topRight()); 721 pPainter->drawLine(rectangle.bottomLeft(), rectangle.bottomRight()); 722 pPainter->drawLine(rectangle.topLeft(), rectangle.bottomLeft()); 723 pPainter->drawLine(rectangle.topRight(), rectangle.bottomRight()); 721 724 722 725 /* Restore painter: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.h
r74685 r74689 277 277 /** Paints background using specified @a pPainter and certain @a pOptions. */ 278 278 void paintBackground(QPainter *pPainter, const QStyleOptionGraphicsItem *pOptions) const; 279 /** Paints frame rectangleusing passed @a pPainter and certain @a pOptions. */280 void paintFrame Rect(QPainter *pPainter, const QStyleOptionGraphicsItem *pOptions) const;279 /** Paints frame using passed @a pPainter and certain @a pOptions. */ 280 void paintFrame(QPainter *pPainter, const QStyleOptionGraphicsItem *pOptions) const; 281 281 /** Paints element info using specified @a pPainter and certain @a pOptions. */ 282 282 void paintElementInfo(QPainter *pPainter, const QStyleOptionGraphicsItem *pOptions) const;
Note:
See TracChangeset
for help on using the changeset viewer.