VirtualBox

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


Ignore:
Timestamp:
Aug 9, 2013 11:40:06 AM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Popup-center: Popup-pane frame.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPane.cpp

    r47455 r47633  
    396396    /* Paint background: */
    397397    paintBackground(rect, painter);
     398
     399    /* Paint frame: */
     400    paintFrame(painter);
    398401}
    399402
     
    428431}
    429432
     433void UIPopupPane::paintFrame(QPainter &painter)
     434{
     435    /* Paint frame: */
     436    QColor currentColor(palette().color(QPalette::Window).darker(150));
     437    QPainterPath path = painter.clipPath();
     438    painter.setClipping(false);
     439    painter.strokePath(path, currentColor);
     440}
     441
    430442void UIPopupPane::done(int iResultCode)
    431443{
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPane.h

    r47455 r47633  
    124124    void configureClipping(const QRect &rect, QPainter &painter);
    125125    void paintBackground(const QRect &rect, QPainter &painter);
     126    void paintFrame(QPainter &painter);
    126127
    127128    /* Helper: Complete stuff: */
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