VirtualBox

Changeset 81279 in vbox


Ignore:
Timestamp:
Oct 15, 2019 7:03:11 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133974
Message:

FE/Qt: bugref:6143. Correcting keyboard scaling as he show/hide multimedia keys.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

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

    r81268 r81279  
    20752075    else
    20762076        m_fScaleFactorX = width() / (float) m_iInitialWidthNoNumPad;
    2077     m_fScaleFactorY = height() / (float) m_iInitialHeight;
     2077
     2078    if (!m_fHideMultimediaKeys)
     2079        m_fScaleFactorY = height() / (float) m_iInitialHeight;
     2080    else
     2081        m_fScaleFactorY = height() / (float)(m_iInitialHeight - m_multiMediaKeysLayout.totalHeight());
    20782082
    20792083    QPainter painter(this);
     
    20882092    float fLedMargin =  0.6 * unitSize;
    20892093
    2090 
    20912094    UISoftKeyboardPhysicalLayout *pPhysicalLayout = findPhysicalLayout(m_pCurrentKeyboardLayout->physicalLayoutUuid());
    20922095    if (!pPhysicalLayout)
     
    21302133
    21312134            m_pCurrentKeyboardLayout->drawTextInRect(key, painter);
    2132 
     2135            /* Draw small LED like circles on the modifier/lock keys: */
    21332136            if (key.type() != KeyType_Ordinary)
    21342137            {
  • trunk/src/VBox/Frontends/VirtualBox/xml/multimedia_keys.xml

    r81268 r81279  
    151151        </key>
    152152        <space>
    153             <height>5</height>
     153            <height>0</height>
    154154        </space>
    155155    </row>
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