New test with C++11 and lambda (UDSEntry testcase)

Kevin Krammer krammer at kde.org
Sat Sep 21 18:39:15 UTC 2013


On Saturday, 2013-09-21, Mark wrote:
> Hi,
> 
> I've just created a quite complicated testcase for frameworks which uses
> the new signal/slot connection syntax (since Qt 5.0) and uses a lambda as
> slot. The reason i did this is so that i can keep then entire testcase
> (minus the initialization) contained in one testcase method. Otherwise i
> would have to make signal/slot connections to member functions which is
> probably not something you want for testcases..

Wouldn't it also be possible to use QSignalSpy?

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130921/8e8270ad/attachment.sig>


More information about the Kde-frameworks-devel mailing list