VirtualBox

Changeset 85475 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 27, 2020 6:08:49 PM (4 years ago)
Author:
vboxsync
Message:

DnD + FE/Qt: Release logging tweaks.

File:
1 edited

Legend:

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

    r82968 r85475  
    168168        && enmResult != KDnDAction_Ignore)
    169169    {
    170         LogFlowFunc(("strFormat=%s ...\n", strFormat.toUtf8().constData()));
    171 
     170        LogRel2(("DnD: Guest requested format '%s'\n", strFormat.toUtf8().constData()));
     171        LogRel2(("DnD: The host offered %d formats:\n", pMimeData->formats().size()));
     172
     173#if 0
     174        QStringList::const_iterator itFmt = pMimeData->formats().constBegin();
     175        while (itFmt != pMimeData->formats().constEnd())
     176        {
     177            LogRel2(("DnD:\t'%s'\n", (*itFmt).toUtf8().constData()));
     178            itFmt++;
     179        }
     180#endif
    172181        QByteArray arrBytes;
    173182
     
    193202        else
    194203        {
    195             LogRel3(("DnD: Guest requested a different format '%s'\n", strFormat.toUtf8().constData()));
    196             LogRel3(("DnD: The host offered:\n"));
    197 #if 0
    198             for (QStringList::iterator itFmt  = pMimeData->formats().begin();
    199                                        itFmt != pMimeData->formats().end(); itFmt++)
    200             {
    201                 QString strTemp = *itFmt;
    202                 LogRel3(("DnD: \t%s\n", strTemp.toUtf8().constData()));
    203             }
    204 #endif
    205204            if (pMimeData->hasText())
    206205            {
    207                 LogRel3(("DnD: Converting data to text ...\n"));
     206                LogRel2(("DnD: Converting data to text ...\n"));
    208207                arrBytes  = pMimeData->text().toUtf8();
    209208                strFormat = "text/plain;charset=utf-8";
     
    211210            else
    212211            {
    213                 LogRel(("DnD: Error: Could not convert host format to guest format\n"));
     212                LogRel(("DnD: Host formats did not offer a matching format for the guest, skipping\n"));
    214213                enmResult = KDnDAction_Ignore;
    215214            }
     
    224223
    225224            /* Send data to the guest. */
    226             LogRel3(("DnD: Host is sending %d bytes of data as '%s'\n", vecData.size(), strFormat.toUtf8().constData()));
     225            LogRel2(("DnD: Host is sending %d bytes of data as '%s'\n", vecData.size(), strFormat.toUtf8().constData()));
    227226            CProgress progress = m_dndTarget.SendData(screenID, strFormat, vecData);
    228227
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