Fix Blackberry QPA plugin clipboard impl
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>
Mon, 7 Jan 2013 19:15:14 +0000 (17:15 -0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 11 Jan 2013 20:58:27 +0000 (21:58 +0100)
commit5c49c33ab088a926577d3798ef90baac86e5794a
tree3595ae8e45d8b9d2d243f79269a54c9b5f1cf6a9
parente11bb8e02fa1f2f933784b9d6d6483c5547e5522
Fix Blackberry QPA plugin clipboard impl

QBBCliboard::setMimeData was not cleaning the system clipboard aproppriately
when m_mimeData != 0 but m_mimeData->userMimeData == 0, as it would return
early before the empty_clipboard() statement.
Also, we must not dataChanged() signal after the clipboard has been changed,
because this is done by the parent class.

cherry-picked from qt5/qtbase 0a977e36e06a69583d8e4edc27ca3df634c53404

Change-Id: I694490e26035d75c3c54e76c538982037c3ef799
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
src/plugins/platforms/blackberry/qbbclipboard.cpp