VirtualBox

Changeset 58866 in vbox


Ignore:
Timestamp:
Nov 25, 2015 3:55:00 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104347
Message:

FE/Qt: Qt5 migration (part 18): QString API changes, no more toAscii(), please!

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

Legend:

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

    r58860 r58866  
    501501    QString program = is.readAll();
    502502
    503     mSource = program.toAscii();
     503    mSource = program.toUtf8();
    504504
    505505    mInitialized = true;
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp

    r56996 r58866  
    547547    if (!keys.contains(strProtocol, Qt::CaseInsensitive))
    548548    {
    549         AssertMsgFailed(("No value for '%s'", strProtocol.toAscii().constData()));
     549        AssertMsgFailed(("No value for '%s'", strProtocol.toUtf8().constData()));
    550550        return KNATProtocol_UDP;
    551551    }
     
    565565    if (!list.contains(strMode))
    566566    {
    567         AssertMsgFailed(("No value for '%s'", strMode.toAscii().constData()));
     567        AssertMsgFailed(("No value for '%s'", strMode.toUtf8().constData()));
    568568    }
    569569    return list.value(strMode, KPortMode_Disconnected);
     
    578578    if (!list.contains(strAction))
    579579    {
    580         AssertMsgFailed(("No value for '%s'", strAction.toAscii().constData()));
     580        AssertMsgFailed(("No value for '%s'", strAction.toUtf8().constData()));
    581581    }
    582582    return list.value(strAction, KUSBDeviceFilterAction_Null);
     
    598598    if (!list.contains(strType))
    599599    {
    600         AssertMsgFailed(("No value for '%s'", strType.toAscii().constData()));
     600        AssertMsgFailed(("No value for '%s'", strType.toUtf8().constData()));
    601601    }
    602602    return list.value(strType, KAudioDriverType_Null);
     
    612612    if (!list.contains(strType))
    613613    {
    614         AssertMsgFailed(("No value for '%s'", strType.toAscii().constData()));
     614        AssertMsgFailed(("No value for '%s'", strType.toUtf8().constData()));
    615615    }
    616616    return list.value(strType, KAudioControllerType_AC97);
     
    626626    if (!list.contains(strType))
    627627    {
    628         AssertMsgFailed(("No value for '%s'", strType.toAscii().constData()));
     628        AssertMsgFailed(("No value for '%s'", strType.toUtf8().constData()));
    629629    }
    630630    return list.value(strType, KAuthType_Null);
     
    646646    if (!list.contains(strType))
    647647    {
    648         AssertMsgFailed(("No value for '%s'", strType.toAscii().constData()));
     648        AssertMsgFailed(("No value for '%s'", strType.toUtf8().constData()));
    649649    }
    650650    return list.value(strType, KStorageControllerType_Null);
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r58688 r58866  
    102102    if (!list.contains(strSizeSuffix))
    103103    {
    104         AssertMsgFailed(("No value for '%s'", strSizeSuffix.toAscii().constData()));
     104        AssertMsgFailed(("No value for '%s'", strSizeSuffix.toUtf8().constData()));
    105105    }
    106106    return list.value(strSizeSuffix);
     
    266266            if (iPort < 0 || iPort > iMaxPort)
    267267            {
    268                 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
     268                AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData()));
    269269                break;
    270270            }
    271271            if (iDevice < 0 || iDevice > iMaxDevice)
    272272            {
    273                 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
     273                AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData()));
    274274                break;
    275275            }
     
    287287            if (iPort < 0 || iPort > iMaxPort)
    288288            {
    289                 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
     289                AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData()));
    290290                break;
    291291            }
     
    303303            if (iPort < 0 || iPort > iMaxPort)
    304304            {
    305                 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
     305                AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData()));
    306306                break;
    307307            }
     
    319319            if (iPort < 0 || iPort > iMaxPort)
    320320            {
    321                 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
     321                AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData()));
    322322                break;
    323323            }
     
    335335            if (iDevice < 0 || iDevice > iMaxDevice)
    336336            {
    337                 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
     337                AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData()));
    338338                break;
    339339            }
     
    351351            if (iPort < 0 || iPort > iMaxPort)
    352352            {
    353                 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
     353                AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData()));
    354354                break;
    355355            }
     
    361361        default:
    362362        {
    363             AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
     363            AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toUtf8().constData()));
    364364            break;
    365365        }
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r58815 r58866  
    19351935    /* Make sure it is valid ID: */
    19361936    AssertMsgReturnVoid(!strID.isNull() && strID != GlobalID,
    1937                         ("Invalid VM ID = {%s}\n", strID.toAscii().constData()));
     1937                        ("Invalid VM ID = {%s}\n", strID.toUtf8().constData()));
    19381938    /* Which is not loaded yet: */
    19391939    AssertReturnVoid(!m_data.contains(strID));
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp

    r55436 r58866  
    143143    /* Remember new stack type: */
    144144    LogRelFlow(("UIPopupCenter::setPopupStackType: Changing type of popup-stack with ID = '%s' from '%s' to '%s'.\n",
    145                 strPopupStackID.toAscii().constData(),
     145                strPopupStackID.toLatin1().constData(),
    146146                stackType == UIPopupStackType_Separate ? "separate window" : "embedded widget",
    147147                newStackType == UIPopupStackType_Separate ? "separate window" : "embedded widget"));
     
    166166    /* Remember new stack orientation: */
    167167    LogRelFlow(("UIPopupCenter::setPopupStackType: Changing orientation of popup-stack with ID = '%s' from '%s' to '%s'.\n",
    168                 strPopupStackID.toAscii().constData(),
     168                strPopupStackID.toLatin1().constData(),
    169169                stackOrientation == UIPopupStackOrientation_Top ? "top oriented" : "bottom oriented",
    170170                newStackOrientation == UIPopupStackOrientation_Top ? "top oriented" : "bottom oriented"));
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r58865 r58866  
    35473547        foreach(QWidget *w, list)
    35483548        {
    3549             if ((!aName || strcmp (w->objectName().toAscii().constData(), aName) == 0) &&
     3549            if ((!aName || strcmp (w->objectName().toLatin1().constData(), aName) == 0) &&
    35503550                (!aClassName || strcmp (w->metaObject()->className(), aClassName) == 0))
    35513551                return w;
     
    45964596        else
    45974597        {
    4598             LogFunc(("Ignoring unknown value '%s' for '%s'\n", pStr->toAscii().constData(), pStr == &strEnvValue ? pszEnvVar : pszExtraDataName));
     4598            LogFunc(("Ignoring unknown value '%s' for '%s'\n", pStr->toUtf8().constData(), pStr == &strEnvValue ? pszEnvVar : pszExtraDataName));
    45994599            *piDbgCfgVar = fDefault ? VBOXGLOBAL_DBG_CFG_VAR_TRUE : VBOXGLOBAL_DBG_CFG_VAR_FALSE;
    46004600        }
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxUtils.h

    r58312 r58866  
    4242    /** Assigns property value. */
    4343    void sltAssignProperty(const QString &strValue)
    44         { parent()->setProperty(m_strName.toAscii().constData(), strValue); }
     44        { parent()->setProperty(m_strName.toLatin1().constData(), strValue); }
    4545
    4646private:
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp

    r58815 r58866  
    114114    /* Insert medium: */
    115115    m_mediums[strMediumID] = medium;
    116     LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} created\n", strMediumID.toAscii().constData()));
     116    LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} created\n", strMediumID.toUtf8().constData()));
    117117
    118118    /* Notify listener: */
     
    130130    /* Remove medium: */
    131131    m_mediums.remove(strMediumID);
    132     LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} deleted\n", strMediumID.toAscii().constData()));
     132    LogRel(("GUI: UIMediumEnumerator: Medium with key={%s} deleted\n", strMediumID.toUtf8().constData()));
    133133
    134134    /* Notify listener: */
     
    168168{
    169169    LogRel2(("GUI: UIMediumEnumerator: Machine (or snapshot) event received, ID = %s\n",
    170              strMachineID.toAscii().constData()));
     170             strMachineID.toUtf8().constData()));
    171171
    172172    /* Gather previously used UIMedium IDs: */
     
    174174    calculateCachedUsage(strMachineID, previousUIMediumIDs, true /* take into account current state only */);
    175175    LogRel2(("GUI: UIMediumEnumerator:  Old usage: %s\n",
    176              previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));
     176             previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toUtf8().constData()));
    177177
    178178    /* Gather currently used CMediums and their IDs: */
     
    181181    calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, true /* take into account current state only */);
    182182    LogRel2(("GUI: UIMediumEnumerator:  New usage: %s\n",
    183              currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));
     183             currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toUtf8().constData()));
    184184
    185185    /* Determine excluded mediums: */
     
    189189    const QStringList excludedUIMediumIDs = excludedSet.toList();
    190190    if (!excludedUIMediumIDs.isEmpty())
    191         LogRel2(("GUI: UIMediumEnumerator:  Items excluded from usage: %s\n", excludedUIMediumIDs.join(", ").toAscii().constData()));
     191        LogRel2(("GUI: UIMediumEnumerator:  Items excluded from usage: %s\n", excludedUIMediumIDs.join(", ").toUtf8().constData()));
    192192    if (!currentCMediumIDs.isEmpty())
    193         LogRel2(("GUI: UIMediumEnumerator:  Items currently in usage: %s\n", currentCMediumIDs.join(", ").toAscii().constData()));
     193        LogRel2(("GUI: UIMediumEnumerator:  Items currently in usage: %s\n", currentCMediumIDs.join(", ").toUtf8().constData()));
    194194
    195195    /* Update cache for excluded UIMediums: */
     
    200200
    201201    LogRel2(("GUI: UIMediumEnumerator: Machine (or snapshot) event processed, ID = %s\n",
    202              strMachineID.toAscii().constData()));
     202             strMachineID.toUtf8().constData()));
    203203}
    204204
     
    207207    LogRel2(("GUI: UIMediumEnumerator: Machine %s event received, ID = %s\n",
    208208             fRegistered ? "registration" : "unregistration",
    209              strMachineID.toAscii().constData()));
     209             strMachineID.toUtf8().constData()));
    210210
    211211    /* Machine was registered: */
     
    217217        calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, false /* take into account current state only */);
    218218        LogRel2(("GUI: UIMediumEnumerator:  New usage: %s\n",
    219                  currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));
     219                 currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toUtf8().constData()));
    220220        /* Update cache with currently used CMediums: */
    221221        recacheFromActualUsage(currentCMediums, currentCMediumIDs);
     
    228228        calculateCachedUsage(strMachineID, previousUIMediumIDs, false /* take into account current state only */);
    229229        LogRel2(("GUI: UIMediumEnumerator:  Old usage: %s\n",
    230                  previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));
     230                 previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toUtf8().constData()));
    231231        /* Update cache for previously used UIMediums: */
    232232        recacheFromCachedUsage(previousUIMediumIDs);
     
    235235    LogRel2(("GUI: UIMediumEnumerator: Machine %s event processed, ID = %s\n",
    236236             fRegistered ? "registration" : "unregistration",
    237              strMachineID.toAscii().constData()));
     237             strMachineID.toUtf8().constData()));
    238238}
    239239
     
    241241{
    242242    LogRel2(("GUI: UIMediumEnumerator: Snapshot-deleted event received, Machine ID = {%s}, Snapshot ID = {%s}\n",
    243              strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData()));
     243             strMachineID.toUtf8().constData(), strSnapshotID.toUtf8().constData()));
    244244
    245245    /* Gather previously used UIMedium IDs: */
     
    247247    calculateCachedUsage(strMachineID, previousUIMediumIDs, false /* take into account current state only */);
    248248    LogRel2(("GUI: UIMediumEnumerator:  Old usage: %s\n",
    249              previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toAscii().constData()));
     249             previousUIMediumIDs.isEmpty() ? "<empty>" : previousUIMediumIDs.join(", ").toUtf8().constData()));
    250250
    251251    /* Gather currently used CMediums and their IDs: */
     
    254254    calculateActualUsage(strMachineID, currentCMediums, currentCMediumIDs, true /* take into account current state only */);
    255255    LogRel2(("GUI: UIMediumEnumerator:  New usage: %s\n",
    256              currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toAscii().constData()));
     256             currentCMediumIDs.isEmpty() ? "<empty>" : currentCMediumIDs.join(", ").toUtf8().constData()));
    257257
    258258    /* Update everything: */
     
    261261
    262262    LogRel2(("GUI: UIMediumEnumerator: Snapshot-deleted event processed, Machine ID = {%s}, Snapshot ID = {%s}\n",
    263              strMachineID.toAscii().constData(), strSnapshotID.toAscii().constData()));
     263             strMachineID.toUtf8().constData(), strSnapshotID.toUtf8().constData()));
    264264}
    265265
     
    274274    const UIMedium uimedium = pTask->property("medium").value<UIMedium>();
    275275    const QString strUIMediumKey = uimedium.key();
    276     LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} enumerated\n", strUIMediumKey.toAscii().constData()));
     276    LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} enumerated\n", strUIMediumKey.toUtf8().constData()));
    277277
    278278    /* Remove task from internal set: */
     
    289289        /* Delete this medium: */
    290290        m_mediums.remove(strUIMediumKey);
    291         LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} closed and deleted (after enumeration)\n", strUIMediumKey.toAscii().constData()));
     291        LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} closed and deleted (after enumeration)\n", strUIMediumKey.toUtf8().constData()));
    292292
    293293        /* And notify listener about delete: */
     
    301301        m_mediums[strUIMediumID] = uimedium;
    302302        m_mediums[strUIMediumID].setKey(strUIMediumID);
    303         LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} has it changed to {%s}\n", strUIMediumKey.toAscii().constData(),
    304                                                                                            strUIMediumID.toAscii().constData()));
     303        LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} has it changed to {%s}\n", strUIMediumKey.toUtf8().constData(),
     304                                                                                           strUIMediumID.toUtf8().constData()));
    305305
    306306        /* And notify listener about delete/create: */
     
    313313        /* Just update enumerated medium: */
    314314        m_mediums[strUIMediumID] = uimedium;
    315         LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} updated\n", strUIMediumID.toAscii().constData()));
     315        LogRel2(("GUI: UIMediumEnumerator: Medium with key={%s} updated\n", strUIMediumID.toUtf8().constData()));
    316316
    317317        /* And notify listener about update: */
     
    517517                /* Uncache corresponding UIMedium: */
    518518                m_mediums.remove(strMediumID);
    519                 LogRel2(("GUI: UIMediumEnumerator:  Medium with key={%s} uncached\n", strMediumID.toAscii().constData()));
     519                LogRel2(("GUI: UIMediumEnumerator:  Medium with key={%s} uncached\n", strMediumID.toUtf8().constData()));
    520520
    521521                /* And notify listeners: */
     
    546546            /* Cache created UIMedium: */
    547547            m_mediums.insert(strUIMediumKey, uimedium);
    548             LogRel2(("GUI: UIMediumEnumerator:  Medium with key={%s} cached\n", strUIMediumKey.toAscii().constData()));
     548            LogRel2(("GUI: UIMediumEnumerator:  Medium with key={%s} cached\n", strUIMediumKey.toUtf8().constData()));
    549549
    550550            /* And notify listeners: */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp

    r58856 r58866  
    19131913                if (!pMediumItem)
    19141914                    break;
    1915                 LogRel2(("UIMediumManager: Optical medium-item with ID={%s} created.\n", medium.id().toAscii().constData()));
     1915                LogRel2(("UIMediumManager: Optical medium-item with ID={%s} created.\n", medium.id().toUtf8().constData()));
    19161916                if (pMediumItem->id() == m_strCurrentIdCD)
    19171917                {
     
    19341934                if (!pMediumItem)
    19351935                    break;
    1936                 LogRel2(("UIMediumManager: Floppy medium-item with ID={%s} created.\n", medium.id().toAscii().constData()));
     1936                LogRel2(("UIMediumManager: Floppy medium-item with ID={%s} created.\n", medium.id().toUtf8().constData()));
    19371937                if (pMediumItem->id() == m_strCurrentIdFD)
    19381938                {
     
    19871987                    UIMedium parentMedium = vboxGlobal().medium(medium.parentID());
    19881988                    if (parentMedium.isNull())
    1989                         AssertMsgFailed(("Parent medium with ID={%s} was not found!\n", medium.parentID().toAscii().constData()));
     1989                        AssertMsgFailed(("Parent medium with ID={%s} was not found!\n", medium.parentID().toUtf8().constData()));
    19901990                    /* Try to create parent medium-item: */
    19911991                    else
     
    19961996                {
    19971997                    pMediumItem = new UIMediumItemHD(medium, pParentMediumItem);
    1998                     LogRel2(("UIMediumManager: Child hard-disk medium-item with ID={%s} created.\n", medium.id().toAscii().constData()));
     1998                    LogRel2(("UIMediumManager: Child hard-disk medium-item with ID={%s} created.\n", medium.id().toUtf8().constData()));
    19991999                }
    20002000            }
     
    20032003            {
    20042004                pMediumItem = new UIMediumItemHD(medium, pTreeWidget);
    2005                 LogRel2(("UIMediumManager: Root hard-disk medium-item with ID={%s} created.\n", medium.id().toAscii().constData()));
     2005                LogRel2(("UIMediumManager: Root hard-disk medium-item with ID={%s} created.\n", medium.id().toUtf8().constData()));
    20062006            }
    20072007        }
     
    20332033    /* Update medium-item: */
    20342034    pMediumItem->setMedium(medium);
    2035     LogRel2(("UIMediumManager: Medium-item with ID={%s} updated.\n", medium.id().toAscii().constData()));
     2035    LogRel2(("UIMediumManager: Medium-item with ID={%s} updated.\n", medium.id().toUtf8().constData()));
    20362036
    20372037    /* Update tab-icons: */
     
    20692069    /* Delete medium-item: */
    20702070    delete pMediumItem;
    2071     LogRel2(("UIMediumManager: Medium-item with ID={%s} deleted.\n", strMediumID.toAscii().constData()));
     2071    LogRel2(("UIMediumManager: Medium-item with ID={%s} deleted.\n", strMediumID.toUtf8().constData()));
    20722072
    20732073    /* If there is no current medium-item now selected
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderAdditions.cpp

    r58737 r58866  
    7272            && !strVersion.endsWith(".97")
    7373            && !strVersion.endsWith(".99"))
    74             strVersion[strVersion.length() - 1] = qchLastDigit.toAscii() - 1;
     74            strVersion[strVersion.length() - 1] = qchLastDigit.toLatin1() - 1;
    7575        else
    7676        {
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp

    r58740 r58866  
    650650        /* Prepare formatted representation: */
    651651        QString strFormattedString = QString("%1: %2").arg(header, headers.value(header));
    652         formattedHeaders << strFormattedString.toAscii();
     652        formattedHeaders << strFormattedString.toUtf8();
    653653        formattedHeaderPointers << formattedHeaders.last().constData();
    654654    }
  • trunk/src/VBox/Frontends/VirtualBox/src/objects/UIRichTextString.cpp

    r55477 r58866  
    4949{
    5050    //printf("Creating new UIRichTextString with string=\"%s\" and string-meta=\"%s\"\n",
    51     //       m_strString.toAscii().constData(), m_strStringMeta.toAscii().constData());
     51    //       m_strString.toUtf8().constData(), m_strStringMeta.toUtf8().constData());
    5252    parse();
    5353}
     
    132132            iMaxLevel = searchForMaxLevel(m_strString, strPattern, strPattern);
    133133            //printf(" Maximum level for the pattern \"%s\" is %d.\n",
    134             //       strPattern.toAscii().constData(), iMaxLevel);
     134            //       strPattern.toUtf8().constData(), iMaxLevel);
    135135            /* If current pattern of at least level 1 is found: */
    136136            if (iMaxLevel > 0)
     
    138138                /* Compose full pattern of the corresponding level: */
    139139                const QString strFullPattern = composeFullPattern(strPattern, strPattern, iMaxLevel);
    140                 //printf("  Full pattern: %s\n", strFullPattern.toAscii().constData());
     140                //printf("  Full pattern: %s\n", strFullPattern.toUtf8().constData());
    141141                QRegExp regExp(strFullPattern);
    142142                regExp.setMinimal(true);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDDataObject_win.cpp

    r58212 r58866  
    245245                         pThisFormat->tymed, pThisFormat->dwAspect));
    246246                LogRel3(("DnD: Got strFormat=%s, pvData=%p, cbData=%RU32\n",
    247                          m_strFormat.toAscii().constData(), m_pvData, m_cbData));
     247                         m_strFormat.toUtf8().constData(), m_pvData, m_cbData));
    248248
    249249                QVariant::Type vaType;
     
    291291                }
    292292#endif
    293                 LogRel3(("DnD: strMIMEType=%s, vaType=%ld\n", strMIMEType.toAscii().constData(), vaType));
     293                LogRel3(("DnD: strMIMEType=%s, vaType=%ld\n", strMIMEType.toUtf8().constData(), vaType));
    294294
    295295                int rc;
     
    325325                        for (size_t i = 0; i < lstFilesURI.size(); i++)
    326326                        {
    327                             char *pszFilePath = RTUriFilePath(lstFilesURI.at(i).toAscii().constData());
     327                            char *pszFilePath = RTUriFilePath(lstFilesURI.at(i).toUtf8().constData());
    328328                            if (pszFilePath)
    329329                            {
     
    347347                            for (size_t i = 0; i < cFiles; i++)
    348348                            {
    349                                 const char *pszFile = lstFiles.at(i).toAscii().constData();
     349                                const char *pszFile = lstFiles.at(i).toUtf8().constData();
    350350                                cchFiles += strlen(pszFile);
    351351                                cchFiles += 1; /* Terminating '\0'. */
     
    447447                        LPCVOID pvSrc = fUnicode
    448448                                      ? (void *)strText.unicode()
    449                                       : (void *)strText.toAscii().constData();
     449                                      : (void *)strText.toUtf8().constData();
    450450                        AssertPtr(pvSrc);
    451451
     
    473473                    }
    474474                    else
    475                         LogRel2(("DnD: MIME type '%s' not supported\n", strMIMEType.toAscii().constData()));
     475                        LogRel2(("DnD: MIME type '%s' not supported\n", strMIMEType.toUtf8().constData()));
    476476
    477477                    LogFlowThisFunc(("Handling formats ended with rc=%Rrc\n", rc));
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp

    r58850 r58866  
    172172        && enmResult != KDnDAction_Ignore)
    173173    {
    174         LogFlowFunc(("strFormat=%s ...\n", strFormat.toAscii().constData()));
     174        LogFlowFunc(("strFormat=%s ...\n", strFormat.toUtf8().constData()));
    175175
    176176        QByteArray arrBytes;
     
    197197        else
    198198        {
    199             LogRel3(("DnD: Guest requested a different format '%s'\n", strFormat.toAscii().constData()));
     199            LogRel3(("DnD: Guest requested a different format '%s'\n", strFormat.toUtf8().constData()));
    200200            LogRel3(("DnD: The host offered:\n"));
    201201#if 0
     
    204204            {
    205205                QString strTemp = *itFmt;
    206                 LogRel3(("DnD: \t%s\n", strTemp.toAscii().constData()));
     206                LogRel3(("DnD: \t%s\n", strTemp.toUtf8().constData()));
    207207            }
    208208#endif
     
    228228
    229229            /* Send data to the guest. */
    230             LogRel3(("DnD: Host is sending %d bytes of data as '%s'\n", vecData.size(), strFormat.toAscii().constData()));
     230            LogRel3(("DnD: Host is sending %d bytes of data as '%s'\n", vecData.size(), strFormat.toUtf8().constData()));
    231231            CProgress progress = m_dndTarget.SendData(screenID, strFormat, vecData);
    232232
     
    353353# ifdef DEBUG
    354354    for (int i = 0; i < lstFormats.size(); i++)
    355         LogFlowFunc(("\tFormat %d: %s\n", i, lstFormats.at(i).toAscii().constData()));
     355        LogFlowFunc(("\tFormat %d: %s\n", i, lstFormats.at(i).toUtf8().constData()));
    356356# endif
    357357
     
    532532        {
    533533            const QString &strFmtGuest = vecFormats.at(i);
    534             LogRelMax3(10, ("DnD: \tFormat %d: %s\n", i, strFmtGuest.toAscii().constData()));
     534            LogRelMax3(10, ("DnD: \tFormat %d: %s\n", i, strFmtGuest.toUtf8().constData()));
    535535        }
    536536
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDMIMEData.cpp

    r58212 r58866  
    4949    LogFlowFunc(("Number of formats: %d\n", m_lstFormats.size()));
    5050    for (int i = 0; i < m_lstFormats.size(); i++)
    51         LogFlowFunc(("\tFormat %d: %s\n", i, m_lstFormats.at(i).toAscii().constData()));
     51        LogFlowFunc(("\tFormat %d: %s\n", i, m_lstFormats.at(i).toUtf8().constData()));
    5252#endif
    5353}
     
    5858#ifdef DEBUG
    5959    for (int i = 0; i < m_lstFormats.size(); i++)
    60         LogFlowFunc(("\tFormat %d: %s\n", i, m_lstFormats.at(i).toAscii().constData()));
     60        LogFlowFunc(("\tFormat %d: %s\n", i, m_lstFormats.at(i).toUtf8().constData()));
    6161#endif
    6262    return m_lstFormats;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r58674 r58866  
    17361736        if (!strFilename.endsWith(QString(".%1").arg(strFormat)))
    17371737            tmpImage.save(QDir::toNativeSeparators(QFile::encodeName(QString("%1.%2").arg(strFilename, strFormat))),
    1738                           strFormat.toAscii().constData());
     1738                          strFormat.toUtf8().constData());
    17391739        else
    17401740            tmpImage.save(QDir::toNativeSeparators(QFile::encodeName(strFilename)),
    1741                           strFormat.toAscii().constData());
     1741                          strFormat.toUtf8().constData());
    17421742#else /* !Q_WS_X11 */
    17431743        tmpImage.save(QDir::toNativeSeparators(QFile::encodeName(strFilename)),
    1744                       strFormat.toAscii().constData());
     1744                      strFormat.toUtf8().constData());
    17451745#endif /* !Q_WS_X11 */
    17461746    }
     
    21712171//    QString strDt = QDateTime::currentDateTime().toString("HH:mm:ss:zzz");
    21722172//    printf("%s: UIMachineLogic: sltSwitchKeyboardLedsToGuestLeds called, machine name is {%s}\n",
    2173 //           strDt.toAscii().constData(),
    2174 //           machineName().toAscii().constData());
     2173//           strDt.toUtf8().constData(),
     2174//           machineName().toUtf8().constData());
    21752175
    21762176    /* Here we have to store host LED lock states. */
     
    22022202//    QString strDt = QDateTime::currentDateTime().toString("HH:mm:ss:zzz");
    22032203//    printf("%s: UIMachineLogic: sltSwitchKeyboardLedsToPreviousLeds called, machine name is {%s}\n",
    2204 //           strDt.toAscii().constData(),
    2205 //           machineName().toAscii().constData());
     2204//           strDt.toUtf8().constData(),
     2205//           machineName().toUtf8().constData());
    22062206
    22072207    if (!isHidLedsSyncEnabled())
     
    26652665    const QString &strSuffix = fi.suffix().isEmpty() ? strFormat : fi.suffix();
    26662666    bigImg.save(QDir::toNativeSeparators(QFile::encodeName(QString("%1.%2").arg(strPathWithoutSuffix, strSuffix))),
    2667                 strFormat.toAscii().constData());
     2667                strFormat.toUtf8().constData());
    26682668}
    26692669
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r58815 r58866  
    617617    /* Handle arrived notification: */
    618618    LogRel(("GUI: UIMachineWindow::handleNativeNotification: Notification '%s' received\n",
    619             strNativeNotificationName.toAscii().constData()));
     619            strNativeNotificationName.toLatin1().constData()));
    620620    AssertPtrReturnVoid(pWidget);
    621621    if (UIMachineWindow *pMachineWindow = qobject_cast<UIMachineWindow*>(pWidget))
     
    623623        /* Redirect arrived notification: */
    624624        LogRel2(("UIMachineWindow::handleNativeNotification: Redirecting '%s' notification to corresponding machine-window...\n",
    625                  strNativeNotificationName.toAscii().constData()));
     625                 strNativeNotificationName.toLatin1().constData()));
    626626        pMachineWindow->handleNativeNotification(strNativeNotificationName);
    627627    }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r58011 r58866  
    6666    /* Log all arrived notifications: */
    6767    LogRel(("UIMachineWindowFullscreen::handleNativeNotification: Notification '%s' received.\n",
    68             strNativeNotificationName.toAscii().constData()));
     68            strNativeNotificationName.toLatin1().constData()));
    6969
    7070    /* Handle 'NSWindowWillEnterFullScreenNotification' notification: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIGInformationElements.cpp

    r58726 r58866  
    498498                AssertMsg(controller.isOk(),
    499499                          ("Unable to acquire controller data: %s\n",
    500                            msgCenter().formatRC(controller.lastRC()).toAscii().constData()));
     500                           msgCenter().formatRC(controller.lastRC()).toUtf8().constData()));
    501501                if (!controller.isOk())
    502502                    continue;
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r58671 r58866  
    17241724
    17251725    /* Which VM we are loading: */
    1726     LogRelFlow(("UIGChooserModel: Loading VM with ID={%s}...\n", machine.GetId().toAscii().constData()));
     1726    LogRelFlow(("UIGChooserModel: Loading VM with ID={%s}...\n", machine.GetId().toUtf8().constData()));
    17271727    /* Is that machine accessible? */
    17281728    if (machine.GetAccessible())
     
    17301730        /* VM is accessible: */
    17311731        QString strName = machine.GetName();
    1732         LogRelFlow(("UIGChooserModel:  VM {%s} is accessible.\n", strName.toAscii().constData()));
     1732        LogRelFlow(("UIGChooserModel:  VM {%s} is accessible.\n", strName.toUtf8().constData()));
    17331733        /* Which groups passed machine attached to? */
    17341734        QVector<QString> groups = machine.GetGroups();
    17351735        QStringList groupList = groups.toList();
    17361736        QString strGroups = groupList.join(", ");
    1737         LogRelFlow(("UIGChooserModel:  VM {%s} has groups: {%s}.\n", strName.toAscii().constData(),
    1738                                                                      strGroups.toAscii().constData()));
     1737        LogRelFlow(("UIGChooserModel:  VM {%s} has groups: {%s}.\n", strName.toUtf8().constData(),
     1738                                                                     strGroups.toUtf8().constData()));
    17391739        foreach (QString strGroup, groups)
    17401740        {
     
    17431743                strGroup.truncate(strGroup.size() - 1);
    17441744            /* Create machine-item with found group-item as parent: */
    1745             LogRelFlow(("UIGChooserModel:   Creating item for VM {%s} in group {%s}.\n", strName.toAscii().constData(),
    1746                                                                                          strGroup.toAscii().constData()));
     1745            LogRelFlow(("UIGChooserModel:   Creating item for VM {%s} in group {%s}.\n", strName.toUtf8().constData(),
     1746                                                                                         strGroup.toUtf8().constData()));
    17471747            createMachineItem(machine, getGroupItem(strGroup, mainRoot(), fMakeItVisible));
    17481748        }
     
    17541754    {
    17551755        /* VM is accessible: */
    1756         LogRelFlow(("UIGChooserModel:  VM {%s} is inaccessible.\n", machine.GetId().toAscii().constData()));
     1756        LogRelFlow(("UIGChooserModel:  VM {%s} is inaccessible.\n", machine.GetId().toUtf8().constData()));
    17571757        /* Create machine-item with main-root group-item as parent: */
    17581758        createMachineItem(machine, mainRoot());
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp

    r57675 r58866  
    498498                AssertMsg(controller.isOk(),
    499499                          ("Unable to acquire controller data: %s\n",
    500                            msgCenter().formatRC(controller.lastRC()).toAscii().constData()));
     500                           msgCenter().formatRC(controller.lastRC()).toUtf8().constData()));
    501501                if (!controller.isOk())
    502502                    continue;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp

    r58856 r58866  
    152152        /* Correctness validation: */
    153153        RTNETADDRIPV4 network, mask;
    154         int rc = RTCidrStrToIPv4(m_data.m_strCIDR.toAscii().constData(), &network, &mask);
     154        int rc = RTCidrStrToIPv4(m_data.m_strCIDR.toUtf8().constData(), &network, &mask);
    155155        if (RT_FAILURE(rc))
    156156        {
     
    244244    {
    245245        if (!m_data.m_interface.m_strInterfaceAddress.trimmed().isEmpty() &&
    246             (   !RTNetIsIPv4AddrStr(m_data.m_interface.m_strInterfaceAddress.toAscii().constData())
    247              || RTNetStrIsIPv4AddrAny(m_data.m_interface.m_strInterfaceAddress.toAscii().constData())))
     246            (   !RTNetIsIPv4AddrStr(m_data.m_interface.m_strInterfaceAddress.toUtf8().constData())
     247             || RTNetStrIsIPv4AddrAny(m_data.m_interface.m_strInterfaceAddress.toUtf8().constData())))
    248248        {
    249249            message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid IPv4 address.").arg(text(0));
     
    251251        }
    252252        if (!m_data.m_interface.m_strInterfaceMask.trimmed().isEmpty() &&
    253             (   !RTNetIsIPv4AddrStr(m_data.m_interface.m_strInterfaceMask.toAscii().constData())
    254              || RTNetStrIsIPv4AddrAny(m_data.m_interface.m_strInterfaceMask.toAscii().constData())))
     253            (   !RTNetIsIPv4AddrStr(m_data.m_interface.m_strInterfaceMask.toUtf8().constData())
     254             || RTNetStrIsIPv4AddrAny(m_data.m_interface.m_strInterfaceMask.toUtf8().constData())))
    255255        {
    256256            message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid IPv4 network mask.").arg(text(0));
     
    260260        {
    261261            if (!m_data.m_interface.m_strInterfaceAddress6.trimmed().isEmpty() &&
    262                 (   !RTNetIsIPv6AddrStr(m_data.m_interface.m_strInterfaceAddress6.toAscii().constData())
    263                  || RTNetStrIsIPv6AddrAny(m_data.m_interface.m_strInterfaceAddress6.toAscii().constData())))
     262                (   !RTNetIsIPv6AddrStr(m_data.m_interface.m_strInterfaceAddress6.toUtf8().constData())
     263                 || RTNetStrIsIPv6AddrAny(m_data.m_interface.m_strInterfaceAddress6.toUtf8().constData())))
    264264            {
    265265                message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid IPv6 address.").arg(text(0));
     
    281281    if (m_data.m_dhcpserver.m_fDhcpServerEnabled)
    282282    {
    283         if (   !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpServerAddress.toAscii().constData())
    284             || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpServerAddress.toAscii().constData()))
     283        if (   !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpServerAddress.toUtf8().constData())
     284            || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpServerAddress.toUtf8().constData()))
    285285        {
    286286            message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid DHCP server address.").arg(text(0));
    287287            fPass = false;
    288288        }
    289         if (   !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpServerMask.toAscii().constData())
    290             || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpServerMask.toAscii().constData()))
     289        if (   !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpServerMask.toUtf8().constData())
     290            || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpServerMask.toUtf8().constData()))
    291291        {
    292292            message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid DHCP server mask.").arg(text(0));
    293293            fPass = false;
    294294        }
    295         if (   !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpLowerAddress.toAscii().constData())
    296             || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpLowerAddress.toAscii().constData()))
     295        if (   !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpLowerAddress.toUtf8().constData())
     296            || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpLowerAddress.toUtf8().constData()))
    297297        {
    298298            message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid DHCP server lower address bound.").arg(text(0));
    299299            fPass = false;
    300300        }
    301         if (   !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpUpperAddress.toAscii().constData())
    302             || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpUpperAddress.toAscii().constData()))
     301        if (   !RTNetIsIPv4AddrStr(m_data.m_dhcpserver.m_strDhcpUpperAddress.toUtf8().constData())
     302            || RTNetStrIsIPv4AddrAny(m_data.m_dhcpserver.m_strDhcpUpperAddress.toUtf8().constData()))
    303303        {
    304304            message.second << UIGlobalSettingsNetwork::tr("Host interface <b>%1</b> does not currently have a valid DHCP server upper address bound.").arg(text(0));
     
    11141114    {
    11151115        AssertMsg(data.m_interface.m_strInterfaceAddress.trimmed().isEmpty() ||
    1116                   RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceAddress.toAscii().constData()),
     1116                  RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceAddress.toUtf8().constData()),
    11171117                  ("Interface IPv4 address must be empty or IPv4-valid!\n"));
    11181118        AssertMsg(data.m_interface.m_strInterfaceMask.trimmed().isEmpty() ||
    1119                   RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceMask.toAscii().constData()),
     1119                  RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceMask.toUtf8().constData()),
    11201120                  ("Interface IPv4 network mask must be empty or IPv4-valid!\n"));
    11211121        if (   (   data.m_interface.m_strInterfaceAddress.trimmed().isEmpty()
    1122                 || RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceAddress.toAscii().constData()))
     1122                || RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceAddress.toUtf8().constData()))
    11231123            && (   data.m_interface.m_strInterfaceMask.trimmed().isEmpty()
    1124                 || RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceMask.toAscii().constData())))
     1124                || RTNetIsIPv4AddrStr(data.m_interface.m_strInterfaceMask.toUtf8().constData())))
    11251125            iface.EnableStaticIPConfig(data.m_interface.m_strInterfaceAddress, data.m_interface.m_strInterfaceMask);
    11261126        if (iface.GetIPV6Supported())
    11271127        {
    11281128            AssertMsg(data.m_interface.m_strInterfaceAddress6.trimmed().isEmpty() ||
    1129                       RTNetIsIPv6AddrStr(data.m_interface.m_strInterfaceAddress6.toAscii().constData()),
     1129                      RTNetIsIPv6AddrStr(data.m_interface.m_strInterfaceAddress6.toUtf8().constData()),
    11301130                      ("Interface IPv6 address must be empty or IPv6-valid!\n"));
    11311131            bool fIsMaskPrefixLengthNumber = false;
     
    11341134                      ("Interface IPv6 network mask prefix length must be empty or IPv6-valid!\n"));
    11351135            if (   (   data.m_interface.m_strInterfaceAddress6.trimmed().isEmpty()
    1136                     || RTNetIsIPv6AddrStr(data.m_interface.m_strInterfaceAddress6.toAscii().constData()))
     1136                    || RTNetIsIPv6AddrStr(data.m_interface.m_strInterfaceAddress6.toUtf8().constData()))
    11371137                && (   fIsMaskPrefixLengthNumber
    11381138                    && iMaskPrefixLength >= 0
     
    11491149    /* Save DHCP server configuration: */
    11501150    dhcp.SetEnabled(data.m_dhcpserver.m_fDhcpServerEnabled);
    1151     AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerAddress.toAscii().constData()),
     1151    AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerAddress.toUtf8().constData()),
    11521152              ("DHCP server IPv4 address must be IPv4-valid!\n"));
    1153     AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerMask.toAscii().constData()),
     1153    AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerMask.toUtf8().constData()),
    11541154              ("DHCP server IPv4 network mask must be IPv4-valid!\n"));
    1155     AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpLowerAddress.toAscii().constData()),
     1155    AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpLowerAddress.toUtf8().constData()),
    11561156              ("DHCP server IPv4 lower bound must be IPv4-valid!\n"));
    1157     AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpUpperAddress.toAscii().constData()),
     1157    AssertMsg(RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpUpperAddress.toUtf8().constData()),
    11581158              ("DHCP server IPv4 upper bound must be IPv4-valid!\n"));
    1159     if (RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerAddress.toAscii().constData()) &&
    1160         RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpServerMask.toAscii().constData()) &&
    1161         RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpLowerAddress.toAscii().constData()) &&
    1162         RTNetIsIPv4AddrStr(data.m_dhcpserver.m_strDhcpUpperAddress.toAscii().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()))
    11631163        dhcp.SetConfiguration(data.m_dhcpserver.m_strDhcpServerAddress, data.m_dhcpserver.m_strDhcpServerMask,
    11641164                              data.m_dhcpserver.m_strDhcpLowerAddress, data.m_dhcpserver.m_strDhcpUpperAddress);
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp

    r58745 r58866  
    728728        /* If at least one address is incorrect: */
    729729        if (!hostIp.trimmed().isEmpty() &&
    730             (   (   !RTNetIsIPv4AddrStr(hostIp.toAscii().constData())
    731                  && !RTNetIsIPv6AddrStr(hostIp.toAscii().constData()))
    732              || RTNetStrIsIPv4AddrAny(hostIp.toAscii().constData())
    733              || RTNetStrIsIPv6AddrAny(hostIp.toAscii().constData())))
     730            (   (   !RTNetIsIPv4AddrStr(hostIp.toUtf8().constData())
     731                 && !RTNetIsIPv6AddrStr(hostIp.toUtf8().constData()))
     732             || RTNetStrIsIPv4AddrAny(hostIp.toUtf8().constData())
     733             || RTNetStrIsIPv6AddrAny(hostIp.toUtf8().constData())))
    734734            return msgCenter().warnAboutIncorrectAddress(window());
    735735        if (!guestIp.trimmed().isEmpty() &&
    736             (   (   !RTNetIsIPv4AddrStr(guestIp.toAscii().constData())
    737                  && !RTNetIsIPv6AddrStr(guestIp.toAscii().constData()))
    738              || RTNetStrIsIPv4AddrAny(guestIp.toAscii().constData())
    739              || RTNetStrIsIPv6AddrAny(guestIp.toAscii().constData())))
     736            (   (   !RTNetIsIPv4AddrStr(guestIp.toUtf8().constData())
     737                 && !RTNetIsIPv6AddrStr(guestIp.toUtf8().constData()))
     738             || RTNetStrIsIPv4AddrAny(guestIp.toUtf8().constData())
     739             || RTNetStrIsIPv6AddrAny(guestIp.toUtf8().constData())))
    740740            return msgCenter().warnAboutIncorrectAddress(window());
    741741        /* If empty guest address is not allowed: */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsRotatorButton.cpp

    r52733 r58866  
    7878
    7979    /* Forward subordinate animation: */
    80     m_pForwardSubordinateAnimation = new QPropertyAnimation(pParent, strPropertyName.toAscii(), this);
     80    m_pForwardSubordinateAnimation = new QPropertyAnimation(pParent, strPropertyName.toLatin1(), this);
    8181    m_pForwardSubordinateAnimation->setDuration(m_iAnimationDuration);
    8282    m_pForwardSubordinateAnimation->setEasingCurve(QEasingCurve::InCubic);
    8383    /* Backward subordinate animation: */
    84     m_pBackwardSubordinateAnimation = new QPropertyAnimation(pParent, strPropertyName.toAscii(), this);
     84    m_pBackwardSubordinateAnimation = new QPropertyAnimation(pParent, strPropertyName.toLatin1(), this);
    8585    m_pBackwardSubordinateAnimation->setDuration(m_iAnimationDuration);
    8686    m_pBackwardSubordinateAnimation->setEasingCurve(QEasingCurve::InCubic);
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsTextPane.cpp

    r56217 r58866  
    363363
    364364    /* Parse incoming string with UIRichTextString capabilities: */
    365     //printf("Text: {%s}\n", strText.toAscii().constData());
     365    //printf("Text: {%s}\n", strText.toUtf8().constData());
    366366    UIRichTextString ms(strText);
    367367    ms.setHoveredAnchor(strHoveredAnchor);
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