VirtualBox

Changeset 109015 in vbox


Ignore:
Timestamp:
Apr 17, 2025 12:42:31 PM (3 days ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168543
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: Disabling contrast outline for tool-item labels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp

    r109013 r109015  
    735735
    736736    /* Draw text: */
    737     QPainterPath textPath;
    738     textPath.addText(0, 0, font, strText);
    739     textPath.translate(point);
    740     pPainter->setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing);
    741     pPainter->setPen(QPen(uiCommon().isInDarkMode() ? Qt::black : Qt::white, 2, Qt::SolidLine, Qt::RoundCap));
    742     pPainter->drawPath(QPainterPathStroker().createStroke(textPath));
    743     pPainter->setBrush(uiCommon().isInDarkMode() ? Qt::white: Qt::black);
    744     pPainter->setPen(Qt::NoPen);
    745     pPainter->drawPath(textPath);
     737    // QPainterPath textPath;
     738    // textPath.addText(0, 0, font, strText);
     739    // textPath.translate(point);
     740    // pPainter->setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing);
     741    // pPainter->setPen(QPen(uiCommon().isInDarkMode() ? Qt::black : Qt::white, 2, Qt::SolidLine, Qt::RoundCap));
     742    // pPainter->drawPath(QPainterPathStroker().createStroke(textPath));
     743    // pPainter->setBrush(uiCommon().isInDarkMode() ? Qt::white: Qt::black);
     744    // pPainter->setPen(Qt::NoPen);
     745    // pPainter->drawPath(textPath);
     746    pPainter->drawText(point, strText);
    746747
    747748    /* Restore painter: */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette