VirtualBox

Ignore:
Timestamp:
Oct 20, 2023 5:41:15 AM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159591
Message:

FE/Qt: bugref:10535. Draw overlay rect. with rounded corners.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp

    r101509 r101514  
    781781    painter.setPen(QPen(Qt::black, 1));
    782782    painter.setBrush(QColor(255, 255, 255, 200));
    783     painter.drawRect(textRect);
     783    /* x and y radii are relative to rectangle's width and height and should be in [0, 100]: */
     784    painter.drawRoundedRect(textRect, 50 /* xRadius */, 50 /* yRadius*/, Qt::RelativeSize);
    784785    painter.drawText(textRect, Qt::AlignHCenter | Qt::AlignVCenter, strArch);
    785786#endif
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