Changeset 93982 in vbox for trunk/src/VBox
- Timestamp:
- Feb 28, 2022 2:15:03 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.cpp
r93980 r93982 1291 1291 if (fGuestAdditionsStatus) 1292 1292 { 1293 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 1294 QStringList versionStrings = m_comGuest.GetAdditionsVersion().split('.', Qt::SkipEmptyParts); 1295 #else 1293 1296 QStringList versionStrings = m_comGuest.GetAdditionsVersion().split('.', QString::SkipEmptyParts); 1297 #endif 1294 1298 if (!versionStrings.isEmpty()) 1295 1299 { -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/consolemanager/UICloudConsoleManager.cpp
r93115 r93982 1058 1058 { 1059 1059 /* Parse definition: */ 1060 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 1061 const QStringList parts = strDefinition.split('/', Qt::SkipEmptyParts); 1062 #else 1060 1063 const QStringList parts = strDefinition.split('/', QString::SkipEmptyParts); 1064 #endif 1061 1065 /* Depending on parts amount: */ 1062 1066 switch (parts.size()) -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp
r93115 r93982 72 72 73 73 /* Split details into paragraphs: */ 74 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 75 QStringList paragraphs(strText.split("<!--EOP-->", Qt::SkipEmptyParts)); 76 #else 74 77 QStringList paragraphs(strText.split("<!--EOP-->", QString::SkipEmptyParts)); 78 #endif 75 79 /* Make sure details-text has at least one paragraph: */ 76 80 AssertReturnVoid(!paragraphs.isEmpty()); … … 81 85 { 82 86 /* Split each paragraph into pairs: */ 87 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 88 QStringList parts(strParagraph.split("<!--EOM-->", Qt::KeepEmptyParts)); 89 #else 83 90 QStringList parts(strParagraph.split("<!--EOM-->", QString::KeepEmptyParts)); 91 #endif 84 92 /* Make sure each paragraph consist of 2 parts: */ 85 93 AssertReturnVoid(parts.size() == 2); -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r93408 r93982 2180 2180 /* Few old extra-data string-lists were separated with 'semicolon' symbol. 2181 2181 * All new separated by 'comma'. We have to take that into account. */ 2182 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 2183 return strValue.split(QRegExp("[;,]"), Qt::SkipEmptyParts); 2184 #else 2182 2185 return strValue.split(QRegExp("[;,]"), QString::SkipEmptyParts); 2186 #endif 2183 2187 } 2184 2188 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPathOperations.cpp
r93115 r93982 134 134 /* static */ QStringList UIPathOperations::pathTrail(const QString &path) 135 135 { 136 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 137 return path.split(UIPathOperations::delimiter, Qt::SkipEmptyParts); 138 #else 136 139 return path.split(UIPathOperations::delimiter, QString::SkipEmptyParts); 140 #endif 137 141 } 138 142 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r93726 r93982 604 604 return; 605 605 } 606 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 607 QStringList pathList = userHome.split(UIPathOperations::delimiter, Qt::SkipEmptyParts); 608 #else 606 609 QStringList pathList = userHome.split(UIPathOperations::delimiter, QString::SkipEmptyParts); 610 #endif 607 611 goIntoDirectory(UIPathOperations::pathTrail(userHome)); 608 612 } -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIDownloaderExtensionPack.cpp
r93115 r93982 83 83 84 84 /* Parse buffer contents to dictionary: */ 85 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 86 const QStringList dictionary(QString(receivedData).split("\n", Qt::SkipEmptyParts)); 87 #else 85 88 const QStringList dictionary(QString(receivedData).split("\n", QString::SkipEmptyParts)); 89 #endif 86 90 /* Make sure it's not empty: */ 87 91 if (dictionary.isEmpty()) -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIDownloaderGuestAdditions.cpp
r93115 r93982 82 82 83 83 /* Parse buffer contents to dictionary: */ 84 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 85 const QStringList dictionary(QString(receivedData).split("\n", Qt::SkipEmptyParts)); 86 #else 84 87 const QStringList dictionary(QString(receivedData).split("\n", QString::SkipEmptyParts)); 88 #endif 85 89 /* Make sure it's not empty: */ 86 90 if (dictionary.isEmpty()) -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UINetworkReply.cpp
r93115 r93982 483 483 /* Parse header contents: */ 484 484 const QString strHeaders = QString(m_reply); 485 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 486 const QStringList headers = strHeaders.split("\n", Qt::SkipEmptyParts); 487 #else 485 488 const QStringList headers = strHeaders.split("\n", QString::SkipEmptyParts); 489 #endif 486 490 foreach (const QString &strHeader, headers) 487 491 { 492 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 493 const QStringList values = strHeader.split(": ", Qt::SkipEmptyParts); 494 #else 488 495 const QStringList values = strHeader.split(": ", QString::SkipEmptyParts); 496 #endif 489 497 if (values.size() > 1) 490 498 m_headers[values.at(0)] = values.at(1); -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UINewVersionChecker.cpp
r93115 r93982 105 105 if (strResponseData.indexOf(QRegExp("^\\d+\\.\\d+\\.\\d+(_[0-9A-Z]+)? \\S+$")) == 0) 106 106 { 107 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 108 const QStringList response = strResponseData.split(" ", Qt::SkipEmptyParts); 109 #else 107 110 const QStringList response = strResponseData.split(" ", QString::SkipEmptyParts); 111 #endif 108 112 UINotificationMessage::showUpdateSuccess(response[0], response[1]); 109 113 } -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIUpdateDefs.cpp
r93115 r93982 177 177 else 178 178 { 179 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 180 QStringList parser(m_strData.split(", ", Qt::SkipEmptyParts)); 181 #else 179 182 QStringList parser(m_strData.split(", ", QString::SkipEmptyParts)); 183 #endif 180 184 181 185 /* Parse 'period' value: */ -
trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/XKeyboard-new.cpp
r93115 r93982 204 204 if (remapScancodes != QString()) 205 205 { 206 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 207 QStringList tuples = remapScancodes.split(",", Qt::SkipEmptyParts); 208 #else 206 209 QStringList tuples = remapScancodes.split(",", QString::SkipEmptyParts); 210 #endif 207 211 scancodes = scancodesTail = new int [tuples.size()+1][2]; 208 212 for (int i = 0; i < tuples.size(); ++i) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDMIMEData.cpp
r93115 r93982 236 236 { 237 237 QString strData = QString(reinterpret_cast<const char*>(vecData.constData())); 238 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 239 QStringList lstString = strData.split(DND_PATH_SEPARATOR_STR, Qt::SkipEmptyParts); 240 #else 238 241 QStringList lstString = strData.split(DND_PATH_SEPARATOR_STR, QString::SkipEmptyParts); 242 #endif 239 243 240 244 QVariantList lstVariant; … … 255 259 { 256 260 QString strData = QString(reinterpret_cast<const char*>(vecData.constData())); 261 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 262 QStringList lstString = strData.split(DND_PATH_SEPARATOR_STR, Qt::SkipEmptyParts); 263 #else 257 264 QStringList lstString = strData.split(DND_PATH_SEPARATOR_STR, QString::SkipEmptyParts); 265 #endif 258 266 259 267 LogFlowFunc(("\tStringList has %d entries\n", lstString.size())); 260 # 268 #ifdef DEBUG 261 269 Q_FOREACH(const QString& strCur, lstString) 262 270 LogFlowFunc(("\t\tString: %s\n", qPrintable(strCur))); 263 # 271 #endif 264 272 vaData = QVariant::fromValue(lstString); 265 273 Assert(vaData.type() == QVariant::StringList); -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r93115 r93982 2064 2064 /* Some captions are multi line using \n as separator: */ 2065 2065 QStringList strList; 2066 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 2067 strList << strTopleftString.split("\n", Qt::SkipEmptyParts) 2068 << strShiftAltGrCaption.split("\n", Qt::SkipEmptyParts); 2069 #else 2066 2070 strList << strTopleftString.split("\n", QString::SkipEmptyParts) 2067 2071 << strShiftAltGrCaption.split("\n", QString::SkipEmptyParts); 2072 #endif 2068 2073 foreach (const QString &strPart, strList) 2069 2074 iTopWidth = qMax(iTopWidth, fontMetrics.width(strPart)); 2070 2075 strList.clear(); 2076 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 2077 strList << strBottomleftString.split("\n", Qt::SkipEmptyParts) 2078 << strAltGrCaption.split("\n", Qt::SkipEmptyParts); 2079 #else 2071 2080 strList << strBottomleftString.split("\n", QString::SkipEmptyParts) 2072 2081 << strAltGrCaption.split("\n", QString::SkipEmptyParts); 2082 #endif 2073 2083 2074 2084 int iBottomWidth = 0; … … 3350 3360 QString strCode = m_xmlReader.readElementText(); 3351 3361 QStringList strList; 3362 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 3363 strList << strCode.split('-', Qt::SkipEmptyParts); 3364 #else 3352 3365 strList << strCode.split('-', QString::SkipEmptyParts); 3366 #endif 3353 3367 foreach (const QString &strPrefix, strList) 3354 3368 { -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPane.cpp
r93115 r93982 525 525 526 526 /* Split details into paragraphs: */ 527 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 528 QStringList aParagraphs(m_strDetails.split("<!--EOP-->", Qt::SkipEmptyParts)); 529 #else 527 530 QStringList aParagraphs(m_strDetails.split("<!--EOP-->", QString::SkipEmptyParts)); 531 #endif 528 532 /* Make sure details-text has at least one paragraph: */ 529 533 AssertReturnVoid(!aParagraphs.isEmpty()); … … 533 537 { 534 538 /* Split each paragraph into pairs: */ 539 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) 540 QStringList aParts(strParagraph.split("<!--EOM-->", Qt::KeepEmptyParts)); 541 #else 535 542 QStringList aParts(strParagraph.split("<!--EOM-->", QString::KeepEmptyParts)); 543 #endif 536 544 /* Make sure each paragraph consist of 2 parts: */ 537 545 AssertReturnVoid(aParts.size() == 2);
Note:
See TracChangeset
for help on using the changeset viewer.