VirtualBox

Ignore:
Timestamp:
Jun 3, 2019 9:46:22 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6143. Some margin adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

    r78921 r78925  
    574574    painter.setRenderHint(QPainter::Antialiasing);
    575575    painter.scale(m_fMultiplierX, m_fMultiplierY);
    576     int unitSize = qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing);
    577     float fLedRadius =  1.5 * unitSize;
    578     float fLedMargin =  unitSize;
     576    int unitSize = qApp->style()->pixelMetric(QStyle::PM_LayoutLeftMargin);
     577    float fLedRadius =  0.8 * unitSize;
     578    float fLedMargin =  0.6 * unitSize;
    579579
    580580    for (int i = 0; i < m_rows.size(); ++i)
     
    597597            painter.drawPolygon(key.polygon());
    598598
    599             QRect textRect(0.8 * unitSize, 2 * unitSize
     599            QRect textRect(0.8 * unitSize, 1 * unitSize
    600600                           , key.keyGeometry().width(), key.keyGeometry().height());
    601601            painter.drawText(textRect, Qt::TextWordWrap, key.keyCap());
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