Changeset 58866 in vbox
- Timestamp:
- Nov 25, 2015 3:55:00 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104347
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r58860 r58866 501 501 QString program = is.readAll(); 502 502 503 mSource = program.to Ascii();503 mSource = program.toUtf8(); 504 504 505 505 mInitialized = true; -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp
r56996 r58866 547 547 if (!keys.contains(strProtocol, Qt::CaseInsensitive)) 548 548 { 549 AssertMsgFailed(("No value for '%s'", strProtocol.to Ascii().constData()));549 AssertMsgFailed(("No value for '%s'", strProtocol.toUtf8().constData())); 550 550 return KNATProtocol_UDP; 551 551 } … … 565 565 if (!list.contains(strMode)) 566 566 { 567 AssertMsgFailed(("No value for '%s'", strMode.to Ascii().constData()));567 AssertMsgFailed(("No value for '%s'", strMode.toUtf8().constData())); 568 568 } 569 569 return list.value(strMode, KPortMode_Disconnected); … … 578 578 if (!list.contains(strAction)) 579 579 { 580 AssertMsgFailed(("No value for '%s'", strAction.to Ascii().constData()));580 AssertMsgFailed(("No value for '%s'", strAction.toUtf8().constData())); 581 581 } 582 582 return list.value(strAction, KUSBDeviceFilterAction_Null); … … 598 598 if (!list.contains(strType)) 599 599 { 600 AssertMsgFailed(("No value for '%s'", strType.to Ascii().constData()));600 AssertMsgFailed(("No value for '%s'", strType.toUtf8().constData())); 601 601 } 602 602 return list.value(strType, KAudioDriverType_Null); … … 612 612 if (!list.contains(strType)) 613 613 { 614 AssertMsgFailed(("No value for '%s'", strType.to Ascii().constData()));614 AssertMsgFailed(("No value for '%s'", strType.toUtf8().constData())); 615 615 } 616 616 return list.value(strType, KAudioControllerType_AC97); … … 626 626 if (!list.contains(strType)) 627 627 { 628 AssertMsgFailed(("No value for '%s'", strType.to Ascii().constData()));628 AssertMsgFailed(("No value for '%s'", strType.toUtf8().constData())); 629 629 } 630 630 return list.value(strType, KAuthType_Null); … … 646 646 if (!list.contains(strType)) 647 647 { 648 AssertMsgFailed(("No value for '%s'", strType.to Ascii().constData()));648 AssertMsgFailed(("No value for '%s'", strType.toUtf8().constData())); 649 649 } 650 650 return list.value(strType, KStorageControllerType_Null); -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r58688 r58866 102 102 if (!list.contains(strSizeSuffix)) 103 103 { 104 AssertMsgFailed(("No value for '%s'", strSizeSuffix.to Ascii().constData()));104 AssertMsgFailed(("No value for '%s'", strSizeSuffix.toUtf8().constData())); 105 105 } 106 106 return list.value(strSizeSuffix); … … 266 266 if (iPort < 0 || iPort > iMaxPort) 267 267 { 268 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.to Ascii().constData()));268 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData())); 269 269 break; 270 270 } 271 271 if (iDevice < 0 || iDevice > iMaxDevice) 272 272 { 273 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.to Ascii().constData()));273 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData())); 274 274 break; 275 275 } … … 287 287 if (iPort < 0 || iPort > iMaxPort) 288 288 { 289 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.to Ascii().constData()));289 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData())); 290 290 break; 291 291 } … … 303 303 if (iPort < 0 || iPort > iMaxPort) 304 304 { 305 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.to Ascii().constData()));305 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData())); 306 306 break; 307 307 } … … 319 319 if (iPort < 0 || iPort > iMaxPort) 320 320 { 321 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.to Ascii().constData()));321 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData())); 322 322 break; 323 323 } … … 335 335 if (iDevice < 0 || iDevice > iMaxDevice) 336 336 { 337 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.to Ascii().constData()));337 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData())); 338 338 break; 339 339 } … … 351 351 if (iPort < 0 || iPort > iMaxPort) 352 352 { 353 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.to Ascii().constData()));353 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData())); 354 354 break; 355 355 } … … 361 361 default: 362 362 { 363 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.to Ascii().constData()));363 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData())); 364 364 break; 365 365 } -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r58815 r58866 1935 1935 /* Make sure it is valid ID: */ 1936 1936 AssertMsgReturnVoid(!strID.isNull() && strID != GlobalID, 1937 ("Invalid VM ID = {%s}\n", strID.to Ascii().constData()));1937 ("Invalid VM ID = {%s}\n", strID.toUtf8().constData())); 1938 1938 /* Which is not loaded yet: */ 1939 1939 AssertReturnVoid(!m_data.contains(strID)); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp
r55436 r58866 143 143 /* Remember new stack type: */ 144 144 LogRelFlow(("UIPopupCenter::setPopupStackType: Changing type of popup-stack with ID = '%s' from '%s' to '%s'.\n", 145 strPopupStackID.to Ascii().constData(),145 strPopupStackID.toLatin1().constData(), 146 146 stackType == UIPopupStackType_Separate ? "separate window" : "embedded widget", 147 147 newStackType == UIPopupStackType_Separate ? "separate window" : "embedded widget")); … … 166 166 /* Remember new stack orientation: */ 167 167 LogRelFlow(("UIPopupCenter::setPopupStackType: Changing orientation of popup-stack with ID = '%s' from '%s' to '%s'.\n", 168 strPopupStackID.to Ascii().constData(),168 strPopupStackID.toLatin1().constData(), 169 169 stackOrientation == UIPopupStackOrientation_Top ? "top oriented" : "bottom oriented", 170 170 newStackOrientation == UIPopupStackOrientation_Top ? "top oriented" : "bottom oriented")); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r58865 r58866 3547 3547 foreach(QWidget *w, list) 3548 3548 { 3549 if ((!aName || strcmp (w->objectName().to Ascii().constData(), aName) == 0) &&3549 if ((!aName || strcmp (w->objectName().toLatin1().constData(), aName) == 0) && 3550 3550 (!aClassName || strcmp (w->metaObject()->className(), aClassName) == 0)) 3551 3551 return w; … … 4596 4596 else 4597 4597 { 4598 LogFunc(("Ignoring unknown value '%s' for '%s'\n", pStr->to Ascii().constData(), pStr == &strEnvValue ? pszEnvVar : pszExtraDataName));4598 LogFunc(("Ignoring unknown value '%s' for '%s'\n", pStr->toUtf8().constData(), pStr == &strEnvValue ? pszEnvVar : pszExtraDataName)); 4599 4599 *piDbgCfgVar = fDefault ? VBOXGLOBAL_DBG_CFG_VAR_TRUE : VBOXGLOBAL_DBG_CFG_VAR_FALSE; 4600 4600 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxUtils.h
r58312 r58866 42 42 /** Assigns property value. */ 43 43 void sltAssignProperty(const QString &strValue) 44 { parent()->setProperty(m_strName.to Ascii().constData(), strValue); }44 { parent()->setProperty(m_strName.toLatin1().constData(), strValue); } 45 45 46 46 private: -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r58815 r58866 114 114 /* Insert medium: */ 115 115 m_mediums[strMediumID] = medium; 116 LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} created\n", strMediumID.to Ascii().constData()));116 LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} created\n", strMediumID.toUtf8().constData())); 117 117 118 118 /* Notify listener: */ … … 130 130 /* Remove medium: */ 131 131 m_mediums.remove(strMediumID); 132 LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} deleted\n", strMediumID.to Ascii().constData()));132 LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} deleted\n", strMediumID.toUtf8().constData())); 133 133 134 134 /* Notify listener: */ … … 168 168 { 169 169 LogRel2(("GUI: UIMediumEnumerator: Machine (or snapshot) event received, ID = %s\n", 170 strMachineID.to Ascii().constData()));170 strMachineID.toUtf8().constData())); 171 171 172 172 /* Gather previously used UIMedium IDs: */ … … 174 174 calculateCachedUsage(strMachineID, previousUIMediumIDs, true /* take into account current state only */); 175 175 LogRel2(("GUI: UIMediumEnumerator: Old usage: %s\n", 176 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").to Ascii().constData()));176 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toUtf8().constData())); 177 177 178 178 /* Gather currently used CMediums and their IDs: */ … … 181 181 calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, true /* take into account current state only */); 182 182 LogRel2(("GUI: UIMediumEnumerator: New usage: %s\n", 183 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").to Ascii().constData()));183 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toUtf8().constData())); 184 184 185 185 /* Determine excluded mediums: */ … … 189 189 const QStringList excludedUIMediumIDs = excludedSet.toList(); 190 190 if (!excludedUIMediumIDs.isEmpty()) 191 LogRel2(("GUI: UIMediumEnumerator: Items excluded from usage: %s\n", excludedUIMediumIDs.join(", ").to Ascii().constData()));191 LogRel2(("GUI: UIMediumEnumerator: Items excluded from usage: %s\n", excludedUIMediumIDs.join(", ").toUtf8().constData())); 192 192 if (!currentCMediumIDs.isEmpty()) 193 LogRel2(("GUI: UIMediumEnumerator: Items currently in usage: %s\n", currentCMediumIDs.join(", ").to Ascii().constData()));193 LogRel2(("GUI: UIMediumEnumerator: Items currently in usage: %s\n", currentCMediumIDs.join(", ").toUtf8().constData())); 194 194 195 195 /* Update cache for excluded UIMediums: */ … … 200 200 201 201 LogRel2(("GUI: UIMediumEnumerator: Machine (or snapshot) event processed, ID = %s\n", 202 strMachineID.to Ascii().constData()));202 strMachineID.toUtf8().constData())); 203 203 } 204 204 … … 207 207 LogRel2(("GUI: UIMediumEnumerator: Machine %s event received, ID = %s\n", 208 208 fRegistered ? "registration" : "unregistration", 209 strMachineID.to Ascii().constData()));209 strMachineID.toUtf8().constData())); 210 210 211 211 /* Machine was registered: */ … … 217 217 calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, false /* take into account current state only */); 218 218 LogRel2(("GUI: UIMediumEnumerator: New usage: %s\n", 219 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").to Ascii().constData()));219 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toUtf8().constData())); 220 220 /* Update cache with currently used CMediums: */ 221 221 recacheFromActualUsage(currentCMediums, currentCMediumIDs); … … 228 228 calculateCachedUsage(strMachineID, previousUIMediumIDs, false /* take into account current state only */); 229 229 LogRel2(("GUI: UIMediumEnumerator: Old usage: %s\n", 230 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").to Ascii().constData()));230 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toUtf8().constData())); 231 231 /* Update cache for previously used UIMediums: */ 232 232 recacheFromCachedUsage(previousUIMediumIDs); … … 235 235 LogRel2(("GUI: UIMediumEnumerator: Machine %s event processed, ID = %s\n", 236 236 fRegistered ? "registration" : "unregistration", 237 strMachineID.to Ascii().constData()));237 strMachineID.toUtf8().constData())); 238 238 } 239 239 … … 241 241 { 242 242 LogRel2(("GUI: UIMediumEnumerator: Snapshot-deleted event received, Machine ID = {%s}, Snapshot ID = {%s}\n", 243 strMachineID.to Ascii().constData(), strSnapshotID.toAscii().constData()));243 strMachineID.toUtf8().constData(), strSnapshotID.toUtf8().constData())); 244 244 245 245 /* Gather previously used UIMedium IDs: */ … … 247 247 calculateCachedUsage(strMachineID, previousUIMediumIDs, false /* take into account current state only */); 248 248 LogRel2(("GUI: UIMediumEnumerator: Old usage: %s\n", 249 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").to Ascii().constData()));249 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toUtf8().constData())); 250 250 251 251 /* Gather currently used CMediums and their IDs: */ … … 254 254 calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, true /* take into account current state only */); 255 255 LogRel2(("GUI: UIMediumEnumerator: New usage: %s\n", 256 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").to Ascii().constData()));256 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toUtf8().constData())); 257 257 258 258 /* Update everything: */ … … 261 261 262 262 LogRel2(("GUI: UIMediumEnumerator: Snapshot-deleted event processed, Machine ID = {%s}, Snapshot ID = {%s}\n", 263 strMachineID.to Ascii().constData(), strSnapshotID.toAscii().constData()));263 strMachineID.toUtf8().constData(), strSnapshotID.toUtf8().constData())); 264 264 } 265 265 … … 274 274 const UIMedium uimedium = pTask->property("medium").value<UIMedium>(); 275 275 const QString strUIMediumKey = uimedium.key(); 276 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} enumerated\n", strUIMediumKey.to Ascii().constData()));276 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} enumerated\n", strUIMediumKey.toUtf8().constData())); 277 277 278 278 /* Remove task from internal set: */ … … 289 289 /* Delete this medium: */ 290 290 m_mediums.remove(strUIMediumKey); 291 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} closed and deleted (after enumeration)\n", strUIMediumKey.to Ascii().constData()));291 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} closed and deleted (after enumeration)\n", strUIMediumKey.toUtf8().constData())); 292 292 293 293 /* And notify listener about delete: */ … … 301 301 m_mediums[strUIMediumID] = uimedium; 302 302 m_mediums[strUIMediumID].setKey(strUIMediumID); 303 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} has it changed to {%s}\n", strUIMediumKey.to Ascii().constData(),304 strUIMediumID.to Ascii().constData()));303 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} has it changed to {%s}\n", strUIMediumKey.toUtf8().constData(), 304 strUIMediumID.toUtf8().constData())); 305 305 306 306 /* And notify listener about delete/create: */ … … 313 313 /* Just update enumerated medium: */ 314 314 m_mediums[strUIMediumID] = uimedium; 315 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} updated\n", strUIMediumID.to Ascii().constData()));315 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} updated\n", strUIMediumID.toUtf8().constData())); 316 316 317 317 /* And notify listener about update: */ … … 517 517 /* Uncache corresponding UIMedium: */ 518 518 m_mediums.remove(strMediumID); 519 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} uncached\n", strMediumID.to Ascii().constData()));519 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} uncached\n", strMediumID.toUtf8().constData())); 520 520 521 521 /* And notify listeners: */ … … 546 546 /* Cache created UIMedium: */ 547 547 m_mediums.insert(strUIMediumKey, uimedium); 548 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} cached\n", strUIMediumKey.to Ascii().constData()));548 LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} cached\n", strUIMediumKey.toUtf8().constData())); 549 549 550 550 /* And notify listeners: */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r58856 r58866 1913 1913 if (!pMediumItem) 1914 1914 break; 1915 LogRel2(("UIMediumManager: Optical medium-item with ID={%s} created.\n", medium.id().to Ascii().constData()));1915 LogRel2(("UIMediumManager: Optical medium-item with ID={%s} created.\n", medium.id().toUtf8().constData())); 1916 1916 if (pMediumItem->id() == m_strCurrentIdCD) 1917 1917 { … … 1934 1934 if (!pMediumItem) 1935 1935 break; 1936 LogRel2(("UIMediumManager: Floppy medium-item with ID={%s} created.\n", medium.id().to Ascii().constData()));1936 LogRel2(("UIMediumManager: Floppy medium-item with ID={%s} created.\n", medium.id().toUtf8().constData())); 1937 1937 if (pMediumItem->id() == m_strCurrentIdFD) 1938 1938 { … … 1987 1987 UIMedium parentMedium = vboxGlobal().medium(medium.parentID()); 1988 1988 if (parentMedium.isNull()) 1989 AssertMsgFailed(("Parent medium with ID={%s} was not found!\n", medium.parentID().to Ascii().constData()));1989 AssertMsgFailed(("Parent medium with ID={%s} was not found!\n", medium.parentID().toUtf8().constData())); 1990 1990 /* Try to create parent medium-item: */ 1991 1991 else … … 1996 1996 { 1997 1997 pMediumItem = new UIMediumItemHD(medium, pParentMediumItem); 1998 LogRel2(("UIMediumManager: Child hard-disk medium-item with ID={%s} created.\n", medium.id().to Ascii().constData()));1998 LogRel2(("UIMediumManager: Child hard-disk medium-item with ID={%s} created.\n", medium.id().toUtf8().constData())); 1999 1999 } 2000 2000 } … … 2003 2003 { 2004 2004 pMediumItem = new UIMediumItemHD(medium, pTreeWidget); 2005 LogRel2(("UIMediumManager: Root hard-disk medium-item with ID={%s} created.\n", medium.id().to Ascii().constData()));2005 LogRel2(("UIMediumManager: Root hard-disk medium-item with ID={%s} created.\n", medium.id().toUtf8().constData())); 2006 2006 } 2007 2007 } … … 2033 2033 /* Update medium-item: */ 2034 2034 pMediumItem->setMedium(medium); 2035 LogRel2(("UIMediumManager: Medium-item with ID={%s} updated.\n", medium.id().to Ascii().constData()));2035 LogRel2(("UIMediumManager: Medium-item with ID={%s} updated.\n", medium.id().toUtf8().constData())); 2036 2036 2037 2037 /* Update tab-icons: */ … … 2069 2069 /* Delete medium-item: */ 2070 2070 delete pMediumItem; 2071 LogRel2(("UIMediumManager: Medium-item with ID={%s} deleted.\n", strMediumID.to Ascii().constData()));2071 LogRel2(("UIMediumManager: Medium-item with ID={%s} deleted.\n", strMediumID.toUtf8().constData())); 2072 2072 2073 2073 /* If there is no current medium-item now selected -
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderAdditions.cpp
r58737 r58866 72 72 && !strVersion.endsWith(".97") 73 73 && !strVersion.endsWith(".99")) 74 strVersion[strVersion.length() - 1] = qchLastDigit.to Ascii() - 1;74 strVersion[strVersion.length() - 1] = qchLastDigit.toLatin1() - 1; 75 75 else 76 76 { -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp
r58740 r58866 650 650 /* Prepare formatted representation: */ 651 651 QString strFormattedString = QString("%1: %2").arg(header, headers.value(header)); 652 formattedHeaders << strFormattedString.to Ascii();652 formattedHeaders << strFormattedString.toUtf8(); 653 653 formattedHeaderPointers << formattedHeaders.last().constData(); 654 654 } -
trunk/src/VBox/Frontends/VirtualBox/src/objects/UIRichTextString.cpp
r55477 r58866 49 49 { 50 50 //printf("Creating new UIRichTextString with string=\"%s\" and string-meta=\"%s\"\n", 51 // m_strString.to Ascii().constData(), m_strStringMeta.toAscii().constData());51 // m_strString.toUtf8().constData(), m_strStringMeta.toUtf8().constData()); 52 52 parse(); 53 53 } … … 132 132 iMaxLevel = searchForMaxLevel(m_strString, strPattern, strPattern); 133 133 //printf(" Maximum level for the pattern \"%s\" is %d.\n", 134 // strPattern.to Ascii().constData(), iMaxLevel);134 // strPattern.toUtf8().constData(), iMaxLevel); 135 135 /* If current pattern of at least level 1 is found: */ 136 136 if (iMaxLevel > 0) … … 138 138 /* Compose full pattern of the corresponding level: */ 139 139 const QString strFullPattern = composeFullPattern(strPattern, strPattern, iMaxLevel); 140 //printf(" Full pattern: %s\n", strFullPattern.to Ascii().constData());140 //printf(" Full pattern: %s\n", strFullPattern.toUtf8().constData()); 141 141 QRegExp regExp(strFullPattern); 142 142 regExp.setMinimal(true); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDDataObject_win.cpp
r58212 r58866 245 245 pThisFormat->tymed, pThisFormat->dwAspect)); 246 246 LogRel3(("DnD: Got strFormat=%s, pvData=%p, cbData=%RU32\n", 247 m_strFormat.to Ascii().constData(), m_pvData, m_cbData));247 m_strFormat.toUtf8().constData(), m_pvData, m_cbData)); 248 248 249 249 QVariant::Type vaType; … … 291 291 } 292 292 #endif 293 LogRel3(("DnD: strMIMEType=%s, vaType=%ld\n", strMIMEType.to Ascii().constData(), vaType));293 LogRel3(("DnD: strMIMEType=%s, vaType=%ld\n", strMIMEType.toUtf8().constData(), vaType)); 294 294 295 295 int rc; … … 325 325 for (size_t i = 0; i < lstFilesURI.size(); i++) 326 326 { 327 char *pszFilePath = RTUriFilePath(lstFilesURI.at(i).to Ascii().constData());327 char *pszFilePath = RTUriFilePath(lstFilesURI.at(i).toUtf8().constData()); 328 328 if (pszFilePath) 329 329 { … … 347 347 for (size_t i = 0; i < cFiles; i++) 348 348 { 349 const char *pszFile = lstFiles.at(i).to Ascii().constData();349 const char *pszFile = lstFiles.at(i).toUtf8().constData(); 350 350 cchFiles += strlen(pszFile); 351 351 cchFiles += 1; /* Terminating '\0'. */ … … 447 447 LPCVOID pvSrc = fUnicode 448 448 ? (void *)strText.unicode() 449 : (void *)strText.to Ascii().constData();449 : (void *)strText.toUtf8().constData(); 450 450 AssertPtr(pvSrc); 451 451 … … 473 473 } 474 474 else 475 LogRel2(("DnD: MIME type '%s' not supported\n", strMIMEType.to Ascii().constData()));475 LogRel2(("DnD: MIME type '%s' not supported\n", strMIMEType.toUtf8().constData())); 476 476 477 477 LogFlowThisFunc(("Handling formats ended with rc=%Rrc\n", rc)); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp
r58850 r58866 172 172 && enmResult != KDnDAction_Ignore) 173 173 { 174 LogFlowFunc(("strFormat=%s ...\n", strFormat.to Ascii().constData()));174 LogFlowFunc(("strFormat=%s ...\n", strFormat.toUtf8().constData())); 175 175 176 176 QByteArray arrBytes; … … 197 197 else 198 198 { 199 LogRel3(("DnD: Guest requested a different format '%s'\n", strFormat.to Ascii().constData()));199 LogRel3(("DnD: Guest requested a different format '%s'\n", strFormat.toUtf8().constData())); 200 200 LogRel3(("DnD: The host offered:\n")); 201 201 #if 0 … … 204 204 { 205 205 QString strTemp = *itFmt; 206 LogRel3(("DnD: \t%s\n", strTemp.to Ascii().constData()));206 LogRel3(("DnD: \t%s\n", strTemp.toUtf8().constData())); 207 207 } 208 208 #endif … … 228 228 229 229 /* Send data to the guest. */ 230 LogRel3(("DnD: Host is sending %d bytes of data as '%s'\n", vecData.size(), strFormat.to Ascii().constData()));230 LogRel3(("DnD: Host is sending %d bytes of data as '%s'\n", vecData.size(), strFormat.toUtf8().constData())); 231 231 CProgress progress = m_dndTarget.SendData(screenID, strFormat, vecData); 232 232 … … 353 353 # ifdef DEBUG 354 354 for (int i = 0; i < lstFormats.size(); i++) 355 LogFlowFunc(("\tFormat %d: %s\n", i, lstFormats.at(i).to Ascii().constData()));355 LogFlowFunc(("\tFormat %d: %s\n", i, lstFormats.at(i).toUtf8().constData())); 356 356 # endif 357 357 … … 532 532 { 533 533 const QString &strFmtGuest = vecFormats.at(i); 534 LogRelMax3(10, ("DnD: \tFormat %d: %s\n", i, strFmtGuest.to Ascii().constData()));534 LogRelMax3(10, ("DnD: \tFormat %d: %s\n", i, strFmtGuest.toUtf8().constData())); 535 535 } 536 536 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDMIMEData.cpp
r58212 r58866 49 49 LogFlowFunc(("Number of formats: %d\n", m_lstFormats.size())); 50 50 for (int i = 0; i < m_lstFormats.size(); i++) 51 LogFlowFunc(("\tFormat %d: %s\n", i, m_lstFormats.at(i).to Ascii().constData()));51 LogFlowFunc(("\tFormat %d: %s\n", i, m_lstFormats.at(i).toUtf8().constData())); 52 52 #endif 53 53 } … … 58 58 #ifdef DEBUG 59 59 for (int i = 0; i < m_lstFormats.size(); i++) 60 LogFlowFunc(("\tFormat %d: %s\n", i, m_lstFormats.at(i).to Ascii().constData()));60 LogFlowFunc(("\tFormat %d: %s\n", i, m_lstFormats.at(i).toUtf8().constData())); 61 61 #endif 62 62 return m_lstFormats; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r58674 r58866 1736 1736 if (!strFilename.endsWith(QString(".%1").arg(strFormat))) 1737 1737 tmpImage.save(QDir::toNativeSeparators(QFile::encodeName(QString("%1.%2").arg(strFilename, strFormat))), 1738 strFormat.to Ascii().constData());1738 strFormat.toUtf8().constData()); 1739 1739 else 1740 1740 tmpImage.save(QDir::toNativeSeparators(QFile::encodeName(strFilename)), 1741 strFormat.to Ascii().constData());1741 strFormat.toUtf8().constData()); 1742 1742 #else /* !Q_WS_X11 */ 1743 1743 tmpImage.save(QDir::toNativeSeparators(QFile::encodeName(strFilename)), 1744 strFormat.to Ascii().constData());1744 strFormat.toUtf8().constData()); 1745 1745 #endif /* !Q_WS_X11 */ 1746 1746 } … … 2171 2171 // QString strDt = QDateTime::currentDateTime().toString("HH:mm:ss:zzz"); 2172 2172 // printf("%s: UIMachineLogic: sltSwitchKeyboardLedsToGuestLeds called, machine name is {%s}\n", 2173 // strDt.to Ascii().constData(),2174 // machineName().to Ascii().constData());2173 // strDt.toUtf8().constData(), 2174 // machineName().toUtf8().constData()); 2175 2175 2176 2176 /* Here we have to store host LED lock states. */ … … 2202 2202 // QString strDt = QDateTime::currentDateTime().toString("HH:mm:ss:zzz"); 2203 2203 // printf("%s: UIMachineLogic: sltSwitchKeyboardLedsToPreviousLeds called, machine name is {%s}\n", 2204 // strDt.to Ascii().constData(),2205 // machineName().to Ascii().constData());2204 // strDt.toUtf8().constData(), 2205 // machineName().toUtf8().constData()); 2206 2206 2207 2207 if (!isHidLedsSyncEnabled()) … … 2665 2665 const QString &strSuffix = fi.suffix().isEmpty() ? strFormat : fi.suffix(); 2666 2666 bigImg.save(QDir::toNativeSeparators(QFile::encodeName(QString("%1.%2").arg(strPathWithoutSuffix, strSuffix))), 2667 strFormat.to Ascii().constData());2667 strFormat.toUtf8().constData()); 2668 2668 } 2669 2669 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r58815 r58866 617 617 /* Handle arrived notification: */ 618 618 LogRel(("GUI: UIMachineWindow::handleNativeNotification: Notification '%s' received\n", 619 strNativeNotificationName.to Ascii().constData()));619 strNativeNotificationName.toLatin1().constData())); 620 620 AssertPtrReturnVoid(pWidget); 621 621 if (UIMachineWindow *pMachineWindow = qobject_cast<UIMachineWindow*>(pWidget)) … … 623 623 /* Redirect arrived notification: */ 624 624 LogRel2(("UIMachineWindow::handleNativeNotification: Redirecting '%s' notification to corresponding machine-window...\n", 625 strNativeNotificationName.to Ascii().constData()));625 strNativeNotificationName.toLatin1().constData())); 626 626 pMachineWindow->handleNativeNotification(strNativeNotificationName); 627 627 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r58011 r58866 66 66 /* Log all arrived notifications: */ 67 67 LogRel(("UIMachineWindowFullscreen::handleNativeNotification: Notification '%s' received.\n", 68 strNativeNotificationName.to Ascii().constData()));68 strNativeNotificationName.toLatin1().constData())); 69 69 70 70 /* Handle 'NSWindowWillEnterFullScreenNotification' notification: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIGInformationElements.cpp
r58726 r58866 498 498 AssertMsg(controller.isOk(), 499 499 ("Unable to acquire controller data: %s\n", 500 msgCenter().formatRC(controller.lastRC()).to Ascii().constData()));500 msgCenter().formatRC(controller.lastRC()).toUtf8().constData())); 501 501 if (!controller.isOk()) 502 502 continue; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r58671 r58866 1724 1724 1725 1725 /* Which VM we are loading: */ 1726 LogRelFlow(("UIGChooserModel: Loading VM with ID={%s}...\n", machine.GetId().to Ascii().constData()));1726 LogRelFlow(("UIGChooserModel: Loading VM with ID={%s}...\n", machine.GetId().toUtf8().constData())); 1727 1727 /* Is that machine accessible? */ 1728 1728 if (machine.GetAccessible()) … … 1730 1730 /* VM is accessible: */ 1731 1731 QString strName = machine.GetName(); 1732 LogRelFlow(("UIGChooserModel: VM {%s} is accessible.\n", strName.to Ascii().constData()));1732 LogRelFlow(("UIGChooserModel: VM {%s} is accessible.\n", strName.toUtf8().constData())); 1733 1733 /* Which groups passed machine attached to? */ 1734 1734 QVector<QString> groups = machine.GetGroups(); 1735 1735 QStringList groupList = groups.toList(); 1736 1736 QString strGroups = groupList.join(", "); 1737 LogRelFlow(("UIGChooserModel: VM {%s} has groups: {%s}.\n", strName.to Ascii().constData(),1738 strGroups.to Ascii().constData()));1737 LogRelFlow(("UIGChooserModel: VM {%s} has groups: {%s}.\n", strName.toUtf8().constData(), 1738 strGroups.toUtf8().constData())); 1739 1739 foreach (QString strGroup, groups) 1740 1740 { … … 1743 1743 strGroup.truncate(strGroup.size() - 1); 1744 1744 /* Create machine-item with found group-item as parent: */ 1745 LogRelFlow(("UIGChooserModel: Creating item for VM {%s} in group {%s}.\n", strName.to Ascii().constData(),1746 strGroup.to Ascii().constData()));1745 LogRelFlow(("UIGChooserModel: Creating item for VM {%s} in group {%s}.\n", strName.toUtf8().constData(), 1746 strGroup.toUtf8().constData())); 1747 1747 createMachineItem(machine, getGroupItem(strGroup, mainRoot(), fMakeItVisible)); 1748 1748 } … … 1754 1754 { 1755 1755 /* VM is accessible: */ 1756 LogRelFlow(("UIGChooserModel: VM {%s} is inaccessible.\n", machine.GetId().to Ascii().constData()));1756 LogRelFlow(("UIGChooserModel: VM {%s} is inaccessible.\n", machine.GetId().toUtf8().constData())); 1757 1757 /* Create machine-item with main-root group-item as parent: */ 1758 1758 createMachineItem(machine, mainRoot()); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp
r57675 r58866 498 498 AssertMsg(controller.isOk(), 499 499 ("Unable to acquire controller data: %s\n", 500 msgCenter().formatRC(controller.lastRC()).to Ascii().constData()));500 msgCenter().formatRC(controller.lastRC()).toUtf8().constData())); 501 501 if (!controller.isOk()) 502 502 continue; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r58856 r58866 152 152 /* Correctness validation: */ 153 153 RTNETADDRIPV4 network, mask; 154 int rc = RTCidrStrToIPv4(m_data.m_strCIDR.to Ascii().constData(), &network, &mask);154 int rc = RTCidrStrToIPv4(m_data.m_strCIDR.toUtf8().constData(), &network, &mask); 155 155 if (RT_FAILURE(rc)) 156 156 { … … 244 244 { 245 245 if (!m_data.m_interface.m_strInterfaceAddress.trimmed().isEmpty() && 246 ( !RTNetIsIPv4AddrStr(m_data.m_interface.m_strInterfaceAddress.to Ascii().constData())247 || RTNetStrIsIPv4AddrAny(m_data.m_interface.m_strInterfaceAddress.to Ascii().constData())))246 ( !RTNetIsIPv4AddrStr(m_data.m_interface.m_strInterfaceAddress.toUtf8().constData()) 247 || RTNetStrIsIPv4AddrAny(m_data.m_interface.m_strInterfaceAddress.toUtf8().constData()))) 248 248 { 249 249 message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid IPv4 address.").arg(text(0)); … … 251 251 } 252 252 if (!m_data.m_interface.m_strInterfaceMask.trimmed().isEmpty() && 253 ( !RTNetIsIPv4AddrStr(m_data.m_interface.m_strInterfaceMask.to Ascii().constData())254 || RTNetStrIsIPv4AddrAny(m_data.m_interface.m_strInterfaceMask.to Ascii().constData())))253 ( !RTNetIsIPv4AddrStr(m_data.m_interface.m_strInterfaceMask.toUtf8().constData()) 254 || RTNetStrIsIPv4AddrAny(m_data.m_interface.m_strInterfaceMask.toUtf8().constData()))) 255 255 { 256 256 message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid IPv4 network mask.").arg(text(0)); … … 260 260 { 261 261 if (!m_data.m_interface.m_strInterfaceAddress6.trimmed().isEmpty() && 262 ( !RTNetIsIPv6AddrStr(m_data.m_interface.m_strInterfaceAddress6.to Ascii().constData())263 || RTNetStrIsIPv6AddrAny(m_data.m_interface.m_strInterfaceAddress6.to Ascii().constData())))262 ( !RTNetIsIPv6AddrStr(m_data.m_interface.m_strInterfaceAddress6.toUtf8().constData()) 263 || RTNetStrIsIPv6AddrAny(m_data.m_interface.m_strInterfaceAddress6.toUtf8().constData()))) 264 264 { 265 265 message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid IPv6 address.").arg(text(0)); … … 281 281 if (m_data.m_dhcpserver.m_fDhcpServerEnabled) 282 282 { 283 if ( !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpServerAddress.to Ascii().constData())284 || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpServerAddress.to Ascii().constData()))283 if ( !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpServerAddress.toUtf8().constData()) 284 || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpServerAddress.toUtf8().constData())) 285 285 { 286 286 message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid DHCP server address.").arg(text(0)); 287 287 fPass = false; 288 288 } 289 if ( !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpServerMask.to Ascii().constData())290 || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpServerMask.to Ascii().constData()))289 if ( !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpServerMask.toUtf8().constData()) 290 || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpServerMask.toUtf8().constData())) 291 291 { 292 292 message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid DHCP server mask.").arg(text(0)); 293 293 fPass = false; 294 294 } 295 if ( !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpLowerAddress.to Ascii().constData())296 || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpLowerAddress.to Ascii().constData()))295 if ( !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpLowerAddress.toUtf8().constData()) 296 || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpLowerAddress.toUtf8().constData())) 297 297 { 298 298 message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid DHCP server lower address bound.").arg(text(0)); 299 299 fPass = false; 300 300 } 301 if ( !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpUpperAddress.to Ascii().constData())302 || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpUpperAddress.to Ascii().constData()))301 if ( !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpUpperAddress.toUtf8().constData()) 302 || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpUpperAddress.toUtf8().constData())) 303 303 { 304 304 message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid DHCP server upper address bound.").arg(text(0)); … … 1114 1114 { 1115 1115 AssertMsg(data.m_interface.m_strInterfaceAddress.trimmed().isEmpty() || 1116 RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceAddress.to Ascii().constData()),1116 RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceAddress.toUtf8().constData()), 1117 1117 ("Interface IPv4 address must be empty or IPv4-valid!\n")); 1118 1118 AssertMsg(data.m_interface.m_strInterfaceMask.trimmed().isEmpty() || 1119 RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceMask.to Ascii().constData()),1119 RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceMask.toUtf8().constData()), 1120 1120 ("Interface IPv4 network mask must be empty or IPv4-valid!\n")); 1121 1121 if ( ( data.m_interface.m_strInterfaceAddress.trimmed().isEmpty() 1122 || RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceAddress.to Ascii().constData()))1122 || RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceAddress.toUtf8().constData())) 1123 1123 && ( data.m_interface.m_strInterfaceMask.trimmed().isEmpty() 1124 || RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceMask.to Ascii().constData())))1124 || RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceMask.toUtf8().constData()))) 1125 1125 iface.EnableStaticIPConfig(data.m_interface.m_strInterfaceAddress, data.m_interface.m_strInterfaceMask); 1126 1126 if (iface.GetIPV6Supported()) 1127 1127 { 1128 1128 AssertMsg(data.m_interface.m_strInterfaceAddress6.trimmed().isEmpty() || 1129 RTNetIsIPv6AddrStr(data.m_interface.m_strInterfaceAddress6.to Ascii().constData()),1129 RTNetIsIPv6AddrStr(data.m_interface.m_strInterfaceAddress6.toUtf8().constData()), 1130 1130 ("Interface IPv6 address must be empty or IPv6-valid!\n")); 1131 1131 bool fIsMaskPrefixLengthNumber = false; … … 1134 1134 ("Interface IPv6 network mask prefix length must be empty or IPv6-valid!\n")); 1135 1135 if ( ( data.m_interface.m_strInterfaceAddress6.trimmed().isEmpty() 1136 || RTNetIsIPv6AddrStr(data.m_interface.m_strInterfaceAddress6.to Ascii().constData()))1136 || RTNetIsIPv6AddrStr(data.m_interface.m_strInterfaceAddress6.toUtf8().constData())) 1137 1137 && ( fIsMaskPrefixLengthNumber 1138 1138 && iMaskPrefixLength >= 0 … … 1149 1149 /* Save DHCP server configuration: */ 1150 1150 dhcp.SetEnabled(data.m_dhcpserver.m_fDhcpServerEnabled); 1151 AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerAddress.to Ascii().constData()),1151 AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerAddress.toUtf8().constData()), 1152 1152 ("DHCP server IPv4 address must be IPv4-valid!\n")); 1153 AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerMask.to Ascii().constData()),1153 AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerMask.toUtf8().constData()), 1154 1154 ("DHCP server IPv4 network mask must be IPv4-valid!\n")); 1155 AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpLowerAddress.to Ascii().constData()),1155 AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpLowerAddress.toUtf8().constData()), 1156 1156 ("DHCP server IPv4 lower bound must be IPv4-valid!\n")); 1157 AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpUpperAddress.to Ascii().constData()),1157 AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpUpperAddress.toUtf8().constData()), 1158 1158 ("DHCP server IPv4 upper bound must be IPv4-valid!\n")); 1159 if (RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerAddress.to Ascii().constData()) &&1160 RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerMask.to Ascii().constData()) &&1161 RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpLowerAddress.to Ascii().constData()) &&1162 RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpUpperAddress.to Ascii().constData()))1159 if (RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerAddress.toUtf8().constData()) && 1160 RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerMask.toUtf8().constData()) && 1161 RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpLowerAddress.toUtf8().constData()) && 1162 RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpUpperAddress.toUtf8().constData())) 1163 1163 dhcp.SetConfiguration(data.m_dhcpserver.m_strDhcpServerAddress, data.m_dhcpserver.m_strDhcpServerMask, 1164 1164 data.m_dhcpserver.m_strDhcpLowerAddress, data.m_dhcpserver.m_strDhcpUpperAddress); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp
r58745 r58866 728 728 /* If at least one address is incorrect: */ 729 729 if (!hostIp.trimmed().isEmpty() && 730 ( ( !RTNetIsIPv4AddrStr(hostIp.to Ascii().constData())731 && !RTNetIsIPv6AddrStr(hostIp.to Ascii().constData()))732 || RTNetStrIsIPv4AddrAny(hostIp.to Ascii().constData())733 || RTNetStrIsIPv6AddrAny(hostIp.to Ascii().constData())))730 ( ( !RTNetIsIPv4AddrStr(hostIp.toUtf8().constData()) 731 && !RTNetIsIPv6AddrStr(hostIp.toUtf8().constData())) 732 || RTNetStrIsIPv4AddrAny(hostIp.toUtf8().constData()) 733 || RTNetStrIsIPv6AddrAny(hostIp.toUtf8().constData()))) 734 734 return msgCenter().warnAboutIncorrectAddress(window()); 735 735 if (!guestIp.trimmed().isEmpty() && 736 ( ( !RTNetIsIPv4AddrStr(guestIp.to Ascii().constData())737 && !RTNetIsIPv6AddrStr(guestIp.to Ascii().constData()))738 || RTNetStrIsIPv4AddrAny(guestIp.to Ascii().constData())739 || RTNetStrIsIPv6AddrAny(guestIp.to Ascii().constData())))736 ( ( !RTNetIsIPv4AddrStr(guestIp.toUtf8().constData()) 737 && !RTNetIsIPv6AddrStr(guestIp.toUtf8().constData())) 738 || RTNetStrIsIPv4AddrAny(guestIp.toUtf8().constData()) 739 || RTNetStrIsIPv6AddrAny(guestIp.toUtf8().constData()))) 740 740 return msgCenter().warnAboutIncorrectAddress(window()); 741 741 /* If empty guest address is not allowed: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsRotatorButton.cpp
r52733 r58866 78 78 79 79 /* Forward subordinate animation: */ 80 m_pForwardSubordinateAnimation = new QPropertyAnimation(pParent, strPropertyName.to Ascii(), this);80 m_pForwardSubordinateAnimation = new QPropertyAnimation(pParent, strPropertyName.toLatin1(), this); 81 81 m_pForwardSubordinateAnimation->setDuration(m_iAnimationDuration); 82 82 m_pForwardSubordinateAnimation->setEasingCurve(QEasingCurve::InCubic); 83 83 /* Backward subordinate animation: */ 84 m_pBackwardSubordinateAnimation = new QPropertyAnimation(pParent, strPropertyName.to Ascii(), this);84 m_pBackwardSubordinateAnimation = new QPropertyAnimation(pParent, strPropertyName.toLatin1(), this); 85 85 m_pBackwardSubordinateAnimation->setDuration(m_iAnimationDuration); 86 86 m_pBackwardSubordinateAnimation->setEasingCurve(QEasingCurve::InCubic); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsTextPane.cpp
r56217 r58866 363 363 364 364 /* Parse incoming string with UIRichTextString capabilities: */ 365 //printf("Text: {%s}\n", strText.to Ascii().constData());365 //printf("Text: {%s}\n", strText.toUtf8().constData()); 366 366 UIRichTextString ms(strText); 367 367 ms.setHoveredAnchor(strHoveredAnchor);
Note:
See TracChangeset
for help on using the changeset viewer.