//#define QDND_DEBUG
#ifdef QDND_DEBUG
-QString dragActionsToString(Qt::DropActions actions)
+static QString dragActionsToString(Qt::DropActions actions)
{
QString str;
if (actions == Qt::IgnoreAction) {
- if (!str.isEmpty())
- str += " | ";
str += "IgnoreAction";
}
if (actions & Qt::LinkAction) {
str += " | ";
str += "MoveAction";
}
- if ((actions & Qt::TargetMoveAction) == Qt::TargetMoveAction ) {
- if (!str.isEmpty())
- str += " | ";
- str += "TargetMoveAction";
- }
return str;
}
-QString KeyboardModifiersToString(Qt::KeyboardModifiers moderfies)
+static QString KeyboardModifiersToString(Qt::KeyboardModifiers moderfies)
{
QString str;
if (moderfies & Qt::ControlModifier) {
- if (!str.isEmpty())
- str += " | ";
str += Qt::ControlModifier;
}
if (moderfies & Qt::AltModifier) {