comparison view/Pane.cpp @ 683:692a8b9804fe

Drop toStdString() and toLocal8Bit().data(), with debug header we can stream QStrings
author Chris Cannam
date Tue, 26 Nov 2013 14:11:04 +0000
parents 1a0dfcbffaf1
children 917039d333bb 97ea68f62c1f 25b3d5802e6e
comparison
equal deleted inserted replaced
682:1a0dfcbffaf1 683:692a8b9804fe
2255 void 2255 void
2256 Pane::dragEnterEvent(QDragEnterEvent *e) 2256 Pane::dragEnterEvent(QDragEnterEvent *e)
2257 { 2257 {
2258 QStringList formats(e->mimeData()->formats()); 2258 QStringList formats(e->mimeData()->formats());
2259 cerr << "dragEnterEvent: format: " 2259 cerr << "dragEnterEvent: format: "
2260 << formats.join(",").toStdString() 2260 << formats.join(",")
2261 << ", possibleActions: " << e->possibleActions() 2261 << ", possibleActions: " << e->possibleActions()
2262 << ", proposedAction: " << e->proposedAction() << endl; 2262 << ", proposedAction: " << e->proposedAction() << endl;
2263 2263
2264 if (e->mimeData()->hasFormat("text/uri-list") || 2264 if (e->mimeData()->hasFormat("text/uri-list") ||
2265 e->mimeData()->hasFormat("text/plain")) { 2265 e->mimeData()->hasFormat("text/plain")) {
2274 } 2274 }
2275 2275
2276 void 2276 void
2277 Pane::dropEvent(QDropEvent *e) 2277 Pane::dropEvent(QDropEvent *e)
2278 { 2278 {
2279 cerr << "dropEvent: text: \"" << e->mimeData()->text().toStdString() 2279 cerr << "dropEvent: text: \"" << e->mimeData()->text()
2280 << "\"" << endl; 2280 << "\"" << endl;
2281 2281
2282 if (e->mimeData()->hasFormat("text/uri-list") || 2282 if (e->mimeData()->hasFormat("text/uri-list") ||
2283 e->mimeData()->hasFormat("text/plain")) { 2283 e->mimeData()->hasFormat("text/plain")) {
2284 2284