VirtualBox

Changeset 81265 in vbox


Ignore:
Timestamp:
Oct 14, 2019 5:16:48 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6143. Including the space after in the row definitions.

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

Legend:

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

    r81263 r81265  
    696696    void  parseKey(UISoftKeyboardRow &row);
    697697    void  parseRow(int iDefaultWidth, int iDefaultHeight, QVector<UISoftKeyboardRow> &rows);
    698     /**  Parses the verticel space between the rows. */
    699     void  parseRowSpace(QVector<UISoftKeyboardRow> &rows);
    700698    /** Parses the horizontal space between keys. */
    701699    void  parseKeySpace(UISoftKeyboardRow &row);
     
    29622960            ++iRowCount;
    29632961        }
    2964         else if (m_xmlReader.name() == "space")
    2965             parseRowSpace(rows);
    29662962        else if (m_xmlReader.name() == "name")
    29672963            physicalLayout.setName(m_xmlReader.readElementText());
     
    29992995            m_xmlReader.skipCurrentElement();
    30002996    }
    3001 }
    3002 
    3003 void UIPhysicalLayoutReader::parseRowSpace(QVector<UISoftKeyboardRow> &rows)
    3004 {
    3005     int iSpace = 0;
    3006     while (m_xmlReader.readNextStartElement())
    3007     {
    3008         if (m_xmlReader.name() == "height")
    3009             iSpace = m_xmlReader.readElementText().toInt();
    3010         else
    3011             m_xmlReader.skipCurrentElement();
    3012     }
    3013     if (!rows.empty())
    3014         rows.back().setSpaceHeightAfter(iSpace);
    30152997}
    30162998
     
    30863068{
    30873069    int iWidth = row.defaultWidth();
     3070    int iHeight = 0;
    30883071    while (m_xmlReader.readNextStartElement())
    30893072    {
    30903073        if (m_xmlReader.name() == "width")
    30913074            iWidth = m_xmlReader.readElementText().toInt();
     3075        else if (m_xmlReader.name() == "height")
     3076            iHeight = m_xmlReader.readElementText().toInt();
    30923077        else
    30933078            m_xmlReader.skipCurrentElement();
    30943079    }
     3080    row.setSpaceHeightAfter(iHeight);
    30953081    /* If we have keys add the parsed space to the last key as the 'space after': */
    30963082    if (!row.keys().empty())
  • trunk/src/VBox/Frontends/VirtualBox/xml/101_ansi.xml

    r81217 r81265  
    116116            <scancode>0x45</scancode>
    117117        </key>
     118        <space>
     119            <height>20</height>
     120        </space>
    118121    </row>
    119     <space>
    120         <height>20</height>
    121     </space>
    122122    <row>
    123123        <key>
  • trunk/src/VBox/Frontends/VirtualBox/xml/102_iso.xml

    r81217 r81265  
    116116            <scancode>0x45</scancode>
    117117        </key>
     118        <space>
     119            <height>20</height>
     120        </space>
    118121    </row>
    119     <space>
    120         <height>20</height>
    121     </space>
    122122    <row>
    123123        <key>
  • trunk/src/VBox/Frontends/VirtualBox/xml/103_ansi.xml

    r81217 r81265  
    114114            <scancode>0x45</scancode>
    115115        </key>
     116        <space>
     117            <height>20</height>
     118        </space>
    116119    </row>
    117     <space>
    118         <height>20</height>
    119     </space>
    120120    <row>
    121121        <key>
  • trunk/src/VBox/Frontends/VirtualBox/xml/103_iso.xml

    r81217 r81265  
    116116            0xe1-0x1d-0x45-0xe1-0x9d-0xc5
    117117        </key>
     118        <space>
     119            <height>20</height>
     120        </space>
    118121    </row>
    119     <space>
    120         <height>20</height>
    121     </space>
    122122    <row>
    123123        <key>
  • trunk/src/VBox/Frontends/VirtualBox/xml/106_japanese.xml

    r81217 r81265  
    116116            <scancode>0x45</scancode>
    117117        </key>
     118        <space>
     119            <height>20</height>
     120        </space>
    118121    </row>
    119     <space>
    120         <height>20</height>
    121     </space>
    122122    <row>
    123123        <key>
  • trunk/src/VBox/Frontends/VirtualBox/xml/multimedia_keys.xml

    r81263 r81265  
    150150            <staticcaption>🔊</staticcaption>
    151151        </key>
     152        <space>
     153            <height>20</height>
     154        </space>
    152155    </row>
    153156</physicallayout>
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