Changeset 80861 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 17, 2019 2:03:02 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMediumSizeEditor.cpp
r80859 r80861 48 48 /* Prepare: */ 49 49 prepare(); 50 QString strRegEx = QString("[^ (\\d|%1)]").arg(uiCommon().decimalSep());50 QString strRegEx = QString("[^\\d%1]").arg(uiCommon().decimalSep()); 51 51 m_regExNonDigitOrSeparator = QRegularExpression(strRegEx); 52 52 } … … 105 105 106 106 m_pEditor->blockSignals(true); 107 int iCursorPosition = m_pEditor->cursorPosition(); 107 108 m_pEditor->setText(strSizeString); 108 /* Reposition the cursor to the front of the size suffix (and 1 char for the space) */ 109 m_pEditor->setCursorPosition(strSizeString.length() - (gpConverter->toString(m_enmSizeSuffix).length() + 1)); 109 m_pEditor->setCursorPosition(iCursorPosition); 110 110 m_pEditor->blockSignals(false); 111 111
Note:
See TracChangeset
for help on using the changeset viewer.