[Qt-interest] QTest: Marking slots as not test functions
Stephen Kelly
steveire at gmail.com
Mon Feb 22 18:19:41 CET 2010
Murray Cumming wrote:
> QTest assumes that all private slots are test functions that it should
> call. That's rather strange, though I understand why it's reusing
> QObject's introspection slot-introspection feature to list methods.
>
> But I want to handle signals in my tests. For instance, how can I tell
> QTest not my QTimer::singleShot() slot directly?
>
Make it protected.
More information about the Qt-interest-old
mailing list