From 4c41cb48d0356a28190c300fd4cc5e03f824b870 Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Tue, 16 Oct 2012 18:11:42 +0200 Subject: Modularize drag and drop documentation - Move dnd docs and examples out of QtDoc module to gui library in QtBase - Remove info related to Motif dnd since Qt5 doesn't implement it Change-Id: Id7eb4eb422f4294a36dd92709ce3007903371f03 Reviewed-by: Jerome Pasion --- src/plugins/platforms/xcb/qxcbdrag.cpp | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/platforms/xcb/qxcbdrag.cpp b/src/plugins/platforms/xcb/qxcbdrag.cpp index 5d887cd06d..27a926eca2 100644 --- a/src/plugins/platforms/xcb/qxcbdrag.cpp +++ b/src/plugins/platforms/xcb/qxcbdrag.cpp @@ -680,8 +680,6 @@ void QXcbDrag::handleEnter(QWindow *window, const xcb_client_message_event_t *ev DEBUG() << "handleEnter" << window; xdnd_types.clear(); -// motifdnd_active = false; -// last_enter_event.xclient = xe->xclient; int version = (int)(event->data.data32[1] >> 24); if (version > xdnd_version) @@ -1217,9 +1215,7 @@ QXcbDropData::~QXcbDropData() QVariant QXcbDropData::retrieveData_sys(const QString &mimetype, QVariant::Type requestedType) const { QByteArray mime = mimetype.toLatin1(); - QVariant data = /*X11->motifdnd_active - ? X11->motifdndObtainData(mime) - :*/ xdndObtainData(mime, requestedType); + QVariant data = xdndObtainData(mime, requestedType); return data; } @@ -1260,20 +1256,11 @@ bool QXcbDropData::hasFormat_sys(const QString &format) const QStringList QXcbDropData::formats_sys() const { QStringList formats; -// if (X11->motifdnd_active) { -// int i = 0; -// QByteArray fmt; -// while (!(fmt = X11->motifdndFormat(i)).isEmpty()) { -// formats.append(QLatin1String(fmt)); -// ++i; -// } -// } else { - for (int i = 0; i < drag->xdnd_types.size(); ++i) { - QString f = mimeAtomToString(drag->connection(), drag->xdnd_types.at(i)); - if (!formats.contains(f)) - formats.append(f); - } -// } + for (int i = 0; i < drag->xdnd_types.size(); ++i) { + QString f = mimeAtomToString(drag->connection(), drag->xdnd_types.at(i)); + if (!formats.contains(f)) + formats.append(f); + } return formats; } -- cgit v1.2.3