Changeset 78925 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 3, 2019 9:46:22 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r78921 r78925 574 574 painter.setRenderHint(QPainter::Antialiasing); 575 575 painter.scale(m_fMultiplierX, m_fMultiplierY); 576 int unitSize = qApp->style()->pixelMetric(QStyle::PM_Layout HorizontalSpacing);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; 579 579 580 580 for (int i = 0; i < m_rows.size(); ++i) … … 597 597 painter.drawPolygon(key.polygon()); 598 598 599 QRect textRect(0.8 * unitSize, 2* unitSize599 QRect textRect(0.8 * unitSize, 1 * unitSize 600 600 , key.keyGeometry().width(), key.keyGeometry().height()); 601 601 painter.drawText(textRect, Qt::TextWordWrap, key.keyCap());
Note:
See TracChangeset
for help on using the changeset viewer.