Changeset 85475 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 27, 2020 6:08:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDHandler.cpp
r82968 r85475 168 168 && enmResult != KDnDAction_Ignore) 169 169 { 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 172 181 QByteArray arrBytes; 173 182 … … 193 202 else 194 203 { 195 LogRel3(("DnD: Guest requested a different format '%s'\n", strFormat.toUtf8().constData()));196 LogRel3(("DnD: The host offered:\n"));197 #if 0198 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 #endif205 204 if (pMimeData->hasText()) 206 205 { 207 LogRel 3(("DnD: Converting data to text ...\n"));206 LogRel2(("DnD: Converting data to text ...\n")); 208 207 arrBytes = pMimeData->text().toUtf8(); 209 208 strFormat = "text/plain;charset=utf-8"; … … 211 210 else 212 211 { 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")); 214 213 enmResult = KDnDAction_Ignore; 215 214 } … … 224 223 225 224 /* Send data to the guest. */ 226 LogRel 3(("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())); 227 226 CProgress progress = m_dndTarget.SendData(screenID, strFormat, vecData); 228 227
Note:
See TracChangeset
for help on using the changeset viewer.