VirtualBox

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


Ignore:
Timestamp:
Dec 27, 2023 9:22:23 AM (14 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: UIAdvancedSettingsDialog: Small painting fix for UIModeCheckBox; Fixing overlapping border issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp

    r102704 r102706  
    318318    /* Prepare right painter paths: */
    319319    QPainterPath painterPath2;
    320     painterPath2.moveTo(contentRect.width() / 2 + 1,                        contentRect.y());
    321     painterPath2.lineTo(contentRect.width(),                                contentRect.y());
    322     painterPath2.lineTo(contentRect.width() - contentRect.height(),        contentRect.height());
    323     painterPath2.lineTo(contentRect.width() / 2 + 1 - contentRect.height(), contentRect.height());
     320    painterPath2.moveTo(contentRect.width() / 2,                        contentRect.y());
     321    painterPath2.lineTo(contentRect.width(),                            contentRect.y());
     322    painterPath2.lineTo(contentRect.width()     - contentRect.height(), contentRect.height());
     323    painterPath2.lineTo(contentRect.width() / 2 - contentRect.height(), contentRect.height());
    324324    painterPath2.closeSubpath();
    325325
     
    353353    const QColor foreground1 = suitableForegroundColor(pal, backColor1);
    354354    const QString strName1 = text1();
    355     const QPoint point1 = QPoint(contentRect.left() + 5 /** @todo justify! */, contentRect.height() / 2 + fm.ascent() / 2 - 1 /* base line */);
     355    const QPoint point1 = QPoint(contentRect.left() + 5 /** @todo justify! */,
     356                                 contentRect.height() / 2 + fm.ascent() / 2 - 1 /* base line */);
    356357    const QColor foreground2 = suitableForegroundColor(pal, backColor2);
    357358    const QString strName2 = text2();
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