- Timestamp:
- Jan 14, 2010, 10:03:47 AM (16 years ago)
- Location:
- trunk/src/gui/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qdnd.cpp
r447 r449 274 274 if (actions == Qt::IgnoreAction) { 275 275 if (!str.isEmpty()) 276 str += " | ";277 str += "IgnoreAction";276 str += QLatin1String(" | "); 277 str += QLatin1String("IgnoreAction"); 278 278 } 279 279 if (actions & Qt::LinkAction) { 280 280 if (!str.isEmpty()) 281 str += " | ";282 str += "LinkAction";281 str += QLatin1String(" | "); 282 str += QLatin1String("LinkAction"); 283 283 } 284 284 if (actions & Qt::CopyAction) { 285 285 if (!str.isEmpty()) 286 str += " | ";287 str += "CopyAction";286 str += QLatin1String(" | "); 287 str += QLatin1String("CopyAction"); 288 288 } 289 289 if (actions & Qt::MoveAction) { 290 290 if (!str.isEmpty()) 291 str += " | ";292 str += "MoveAction";291 str += QLatin1String(" | "); 292 str += QLatin1String("MoveAction"); 293 293 } 294 294 if ((actions & Qt::TargetMoveAction) == Qt::TargetMoveAction ) { 295 295 if (!str.isEmpty()) 296 str += " | ";297 str += "TargetMoveAction";296 str += QLatin1String(" | "); 297 str += QLatin1String("TargetMoveAction"); 298 298 } 299 299 return str; … … 305 305 if (moderfies & Qt::ControlModifier) { 306 306 if (!str.isEmpty()) 307 str += " | ";308 str += Q t::ControlModifier;307 str += QLatin1String(" | "); 308 str += QLatin1String("ControlModifier"); 309 309 } 310 310 if (moderfies & Qt::AltModifier) { 311 311 if (!str.isEmpty()) 312 str += " | ";313 str += Q t::AltModifier;312 str += QLatin1String(" | "); 313 str += QLatin1String("AltModifier"); 314 314 } 315 315 if (moderfies & Qt::ShiftModifier) { 316 316 if (!str.isEmpty()) 317 str += " | ";318 str += Q t::ShiftModifier;317 str += QLatin1String(" | "); 318 str += QLatin1String("ShiftModifier"); 319 319 } 320 320 return str; … … 414 414 #ifdef QDND_DEBUG 415 415 qDebug("QDragManager::defaultAction(Qt::DropActions possibleActions)"); 416 qDebug("keyboard modifiers : % s", KeyboardModifiersToString(modifiers).latin1());416 qDebug("keyboard modifiers : %ls", KeyboardModifiersToString(modifiers).utf16()); 417 417 #endif 418 418 … … 453 453 454 454 #ifdef QDND_DEBUG 455 qDebug("possible actions : % s", dragActionsToString(possibleActions).latin1());455 qDebug("possible actions : %ls", dragActionsToString(possibleActions).utf16()); 456 456 #endif 457 457 … … 469 469 470 470 #ifdef QDND_DEBUG 471 qDebug("default action : % s", dragActionsToString(defaultAction).latin1());471 qDebug("default action : %ls", dragActionsToString(defaultAction).utf16()); 472 472 #endif 473 473 -
trunk/src/gui/kernel/qdnd_pm.cpp
r448 r449 73 73 extern void qt_DrgFreeDragtransfer(DRAGTRANSFER *xfer); // defined in qmime_pm.cpp 74 74 75 #ifdef QDND_DEBUG 76 extern QString dragActionsToString(Qt::DropActions actions); 77 #endif 78 75 79 /** \internal 76 80 * Data for QDragEnterEvent/QDragMoveEvent/QPMDropEvent. … … 684 688 << "(isExclusive" << wrk->isExclusive() << ", " 685 689 << "itemCount" << wrk->itemCount() << ") from convertor" 686 << mime ->convertorName()<< " (gotExclForMime"690 << mime << " (gotExclForMime" 687 691 << gotExclForMime << ", " << "gotExcl" << gotExcl 688 692 << ", skipExcl" << skipExcl << ", coopLevel"
Note:
See TracChangeset
for help on using the changeset viewer.