[Development] Moving QClipboard *changed() signals to QPA plugins on 4.8

Rafael Roquetto rafael.roquetto at kdab.com
Mon Jan 7 14:53:22 CET 2013


Hello,

QClipboard on Qt 4.8 may emit changed(), dataChanged(), findBufferChanged() or
selectionChanged() signals from within QClipboard::setMimeData(), which is
called both externally and internally. On QPA, as it has already been done on
Qt5, it makes sense to let the QPA plugin implementation of
QPlatformClipboard::setMimeData() handle the signal emission, for the plugin
must know better when to do it.
The proposed change can be found at https://codereview.qt-project.org/#change,44009

It moves the signal emissions to the respective platform plugins, but it is
worth noting that third-party QPA plugins implementing QPlatformClipboard will
have to adjust their implementation of QPlatformClipboard::setMimeData() by
emtting the signals appropriately (see the aforementioned review for
examples).

If anyone agrees or disagrees with this change, please be very welcome to
state your +1s and -1s on the review or in this thread. Reviews are of course
very welcome, too.

Kind regards,
Rafael
-- 
Rafael Roquetto | rafael.roquetto at kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3721 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130107/f485a424/attachment.bin>


More information about the Development mailing list