Changeset 81265 in vbox
- Timestamp:
- Oct 14, 2019 5:16:48 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r81263 r81265 696 696 void parseKey(UISoftKeyboardRow &row); 697 697 void parseRow(int iDefaultWidth, int iDefaultHeight, QVector<UISoftKeyboardRow> &rows); 698 /** Parses the verticel space between the rows. */699 void parseRowSpace(QVector<UISoftKeyboardRow> &rows);700 698 /** Parses the horizontal space between keys. */ 701 699 void parseKeySpace(UISoftKeyboardRow &row); … … 2962 2960 ++iRowCount; 2963 2961 } 2964 else if (m_xmlReader.name() == "space")2965 parseRowSpace(rows);2966 2962 else if (m_xmlReader.name() == "name") 2967 2963 physicalLayout.setName(m_xmlReader.readElementText()); … … 2999 2995 m_xmlReader.skipCurrentElement(); 3000 2996 } 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 else3011 m_xmlReader.skipCurrentElement();3012 }3013 if (!rows.empty())3014 rows.back().setSpaceHeightAfter(iSpace);3015 2997 } 3016 2998 … … 3086 3068 { 3087 3069 int iWidth = row.defaultWidth(); 3070 int iHeight = 0; 3088 3071 while (m_xmlReader.readNextStartElement()) 3089 3072 { 3090 3073 if (m_xmlReader.name() == "width") 3091 3074 iWidth = m_xmlReader.readElementText().toInt(); 3075 else if (m_xmlReader.name() == "height") 3076 iHeight = m_xmlReader.readElementText().toInt(); 3092 3077 else 3093 3078 m_xmlReader.skipCurrentElement(); 3094 3079 } 3080 row.setSpaceHeightAfter(iHeight); 3095 3081 /* If we have keys add the parsed space to the last key as the 'space after': */ 3096 3082 if (!row.keys().empty()) -
trunk/src/VBox/Frontends/VirtualBox/xml/101_ansi.xml
r81217 r81265 116 116 <scancode>0x45</scancode> 117 117 </key> 118 <space> 119 <height>20</height> 120 </space> 118 121 </row> 119 <space>120 <height>20</height>121 </space>122 122 <row> 123 123 <key> -
trunk/src/VBox/Frontends/VirtualBox/xml/102_iso.xml
r81217 r81265 116 116 <scancode>0x45</scancode> 117 117 </key> 118 <space> 119 <height>20</height> 120 </space> 118 121 </row> 119 <space>120 <height>20</height>121 </space>122 122 <row> 123 123 <key> -
trunk/src/VBox/Frontends/VirtualBox/xml/103_ansi.xml
r81217 r81265 114 114 <scancode>0x45</scancode> 115 115 </key> 116 <space> 117 <height>20</height> 118 </space> 116 119 </row> 117 <space>118 <height>20</height>119 </space>120 120 <row> 121 121 <key> -
trunk/src/VBox/Frontends/VirtualBox/xml/103_iso.xml
r81217 r81265 116 116 0xe1-0x1d-0x45-0xe1-0x9d-0xc5 117 117 </key> 118 <space> 119 <height>20</height> 120 </space> 118 121 </row> 119 <space>120 <height>20</height>121 </space>122 122 <row> 123 123 <key> -
trunk/src/VBox/Frontends/VirtualBox/xml/106_japanese.xml
r81217 r81265 116 116 <scancode>0x45</scancode> 117 117 </key> 118 <space> 119 <height>20</height> 120 </space> 118 121 </row> 119 <space>120 <height>20</height>121 </space>122 122 <row> 123 123 <key> -
trunk/src/VBox/Frontends/VirtualBox/xml/multimedia_keys.xml
r81263 r81265 150 150 <staticcaption>🔊</staticcaption> 151 151 </key> 152 <space> 153 <height>20</height> 154 </space> 152 155 </row> 153 156 </physicallayout>
Note:
See TracChangeset
for help on using the changeset viewer.