QClipboard: Fix autotest fails
authorDebao Zhang <dbzhang800@gmail.com>
Fri, 24 Feb 2012 18:51:18 +0000 (10:51 -0800)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 19:52:45 +0000 (20:52 +0100)
commit63017136a1a6625c3528f9b237468a55b7fab12c
tree399d8fd90b8f030befcc1f7788852ad24ded73f2
parente76d72aec544878d976423e2136e7787aba980ab
QClipboard: Fix autotest fails

tst_qclipboard.cpp still has Q_WS_WIN which must be clear away. After
clean up, auto test will fail under windows: When setMimeData() is
called, dataChanged() signal will be emited twice.

The solution for QTBUG-24184 has partially solved the problem, but it
still there. Make sure emitChanged() only called by QPlatformClipboard
will give our more control for this.

Task-number: QTBUG-24484
Change-Id: I23566c6d3b32828b6865234c311af3635fe9e299
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qclipboard_qpa.cpp
src/gui/kernel/qplatformclipboard_qpa.cpp
src/plugins/platforms/windows/qwindowsclipboard.cpp
src/plugins/platforms/xcb/qxcbclipboard.cpp
src/plugins/platforms/xlib/qxlibclipboard.cpp
tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp