Changeset 465 for trunk/src/gui/kernel/qdnd_pm.cpp
- Timestamp:
- Jan 22, 2010, 12:24:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qdnd_pm.cpp
r464 r465 1024 1024 static ULONG itemID = 0; 1025 1025 1026 const char *type = 0;1027 const char *ext = 0;1026 QString type; 1027 QString ext; 1028 1028 firstWorker->defaultFileType(type, ext); 1029 1029 … … 1043 1043 name = QString(QLatin1String("%1 %2")).arg(targetName).arg(i + 1); 1044 1044 1045 if (ext) { 1046 name += QLatin1Char('.'); 1047 name += QFile::decodeName(QByteArray(ext)); 1048 } 1045 if (!ext.isEmpty()) 1046 name += QString(QLatin1String(".%1")).arg(ext); 1049 1047 1050 1048 DEBUG(() << "QPMCoopDragWorker: item" << i << ": type" << type … … 1062 1060 item->hwndItem = hwnd(); 1063 1061 item->ulItemID = itemID ++; 1064 item->hstrType = DrgAddStrHandle(type ? type : DRT_UNKNOWN); 1062 item->hstrType = DrgAddStrHandle(!type.isEmpty() ? 1063 QFile::encodeName(type) : DRT_UNKNOWN); 1065 1064 item->hstrRMF = DrgAddStrHandle(allFormats); 1066 1065 item->hstrContainerName = 0;
Note:
See TracChangeset
for help on using the changeset viewer.