Changeset 449 for trunk/src/gui/kernel


Ignore:
Timestamp:
Jan 14, 2010, 10:03:47 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

kernel: DnD: Fixed QDND_DEBUG build.

Location:
trunk/src/gui/kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qdnd.cpp

    r447 r449  
    274274    if (actions == Qt::IgnoreAction) {
    275275        if (!str.isEmpty())
    276             str += " | ";
    277         str += "IgnoreAction";
     276            str += QLatin1String(" | ");
     277        str += QLatin1String("IgnoreAction");
    278278    }
    279279    if (actions & Qt::LinkAction) {
    280280        if (!str.isEmpty())
    281             str += " | ";
    282         str += "LinkAction";
     281            str += QLatin1String(" | ");
     282        str += QLatin1String("LinkAction");
    283283    }
    284284    if (actions & Qt::CopyAction) {
    285285        if (!str.isEmpty())
    286             str += " | ";
    287         str += "CopyAction";
     286            str += QLatin1String(" | ");
     287        str += QLatin1String("CopyAction");
    288288    }
    289289    if (actions & Qt::MoveAction) {
    290290        if (!str.isEmpty())
    291             str += " | ";
    292         str += "MoveAction";
     291            str += QLatin1String(" | ");
     292        str += QLatin1String("MoveAction");
    293293    }
    294294    if ((actions & Qt::TargetMoveAction) == Qt::TargetMoveAction ) {
    295295        if (!str.isEmpty())
    296             str += " | ";
    297         str += "TargetMoveAction";
     296            str += QLatin1String(" | ");
     297        str += QLatin1String("TargetMoveAction");
    298298    }
    299299    return str;
     
    305305    if (moderfies & Qt::ControlModifier) {
    306306        if (!str.isEmpty())
    307             str += " | ";
    308         str += Qt::ControlModifier;
     307            str += QLatin1String(" | ");
     308        str += QLatin1String("ControlModifier");
    309309    }
    310310    if (moderfies & Qt::AltModifier) {
    311311        if (!str.isEmpty())
    312             str += " | ";
    313         str += Qt::AltModifier;
     312            str += QLatin1String(" | ");
     313        str += QLatin1String("AltModifier");
    314314    }
    315315    if (moderfies & Qt::ShiftModifier) {
    316316        if (!str.isEmpty())
    317             str += " | ";
    318         str += Qt::ShiftModifier;
     317            str += QLatin1String(" | ");
     318        str += QLatin1String("ShiftModifier");
    319319    }
    320320    return str;
     
    414414#ifdef QDND_DEBUG
    415415    qDebug("QDragManager::defaultAction(Qt::DropActions possibleActions)");
    416     qDebug("keyboard modifiers : %s", KeyboardModifiersToString(modifiers).latin1());
     416    qDebug("keyboard modifiers : %ls", KeyboardModifiersToString(modifiers).utf16());
    417417#endif
    418418
     
    453453
    454454#ifdef QDND_DEBUG
    455     qDebug("possible actions : %s", dragActionsToString(possibleActions).latin1());
     455    qDebug("possible actions : %ls", dragActionsToString(possibleActions).utf16());
    456456#endif
    457457
     
    469469
    470470#ifdef QDND_DEBUG
    471     qDebug("default action : %s", dragActionsToString(defaultAction).latin1());
     471    qDebug("default action : %ls", dragActionsToString(defaultAction).utf16());
    472472#endif
    473473
  • trunk/src/gui/kernel/qdnd_pm.cpp

    r448 r449  
    7373extern void qt_DrgFreeDragtransfer(DRAGTRANSFER *xfer); // defined in qmime_pm.cpp
    7474
     75#ifdef QDND_DEBUG
     76extern QString dragActionsToString(Qt::DropActions actions);
     77#endif
     78
    7579/** \internal
    7680 *  Data for QDragEnterEvent/QDragMoveEvent/QPMDropEvent.
     
    684688                     << "(isExclusive" << wrk->isExclusive() << ", "
    685689                     << "itemCount" << wrk->itemCount() << ") from convertor"
    686                      << mime->convertorName() << " (gotExclForMime"
     690                     << mime << " (gotExclForMime"
    687691                     << gotExclForMime << ", " << "gotExcl" << gotExcl
    688692                     << ", skipExcl" << skipExcl << ", coopLevel"
Note: See TracChangeset for help on using the changeset viewer.