Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
Description
QSignalMapper should use "const QObject *" instead of "QObject *", i.e.
QSignalMapper::setMapping( QObject * sender, int id )
should instead be
QSignalMapper::setMapping( const QObject * sender, int id )
as the function does not modify the QObject instance. This goes for the other functions in QSignalMapper taking a "QObject *" as well.