+2007-10-31 Holger Freyther <zecke@selfish.org>
+
+ Reviewed by Lars Knoll <lars@trolltech.com>.
+
+ * QMimeData::removeData will be new in Qt4.4, don't use it for Qt4.3
+ * Provide a bad fallback implementation to filter the format list.
+
+ * platform/qt/ClipboardQt.cpp:
+ (WebCore::ClipboardQt::clearData):
+
2007-10-31 Lars Knoll <lars@trolltech.com>
Reviewed by Simon.
add an entitiy resolver to QXmlStream.
Fixes fast/parser/entities-in-attributes.xhtml.
- WARNING: NO TEST CASES ADDED OR CHANGED
-
* dom/XMLTokenizer.cpp:
(WebCore::EntityResolver::resolveUndeclaredEntity):
(WebCore::XMLTokenizer::XMLTokenizer):
add support for dragging images.
- WARNING: NO TEST CASES ADDED OR CHANGED
-
* platform/DragImage.h:
* platform/qt/ClipboardQt.cpp:
(WebCore::ClipboardQt::clearData):
fix most of the issues I found with Clipboard and DnD.
- WARNING: NO TEST CASES ADDED OR CHANGED
-
* editing/qt/EditorQt.cpp:
* platform/qt/ClipboardQt.cpp:
(WebCore::ClipboardQt::ClipboardQt):
return;
ASSERT(m_writableData);
+#if QT_VERSION >= 0x040400
m_writableData->removeFormat(type);
+#else
+ const QString toClearType = type;
+ QMap<QString, QByteArray> formats;
+ foreach (QString format, m_writableData->formats()) {
+ if (format != toClearType)
+ formats[format] = m_writableData->data(format);
+ }
+
+ m_writableData->clear();
+ QMap<QString, QByteArray>::const_iterator it, end = formats.constEnd();
+ for (it = formats.begin(); it != end; ++it)
+ m_writableData->setData(it.key(), it.value());
+#endif
}
void ClipboardQt::clearAllData()