Closed GoogleCodeExporter closed 9 years ago
Ah, so AFAIK the problem exists since the identitywidget (and so the
IPhotoProvider hook) is used also for users.
connecting/disconnecting signals is nast & tricky, I think this is not
recommended by Qt...
What if we implement something like "context" for the photo, like for actions
too?
Then all receive the signal photoReady(QPixmap, QString) (like Q_EMIT
photoReady(pixmap, "User.Photo") or "Patient.Photo" etc.
Could that be a possibility?
Strings are not very good, but with consts it's ok.
the webcamplugin could e.g. provide
Maybe, instead of using another type of constants, we could use the tokens for
that?
const char * const TOKEN_PATIENTCONTACT_PHOTO = "Patient.Contact.Photo";
This one is missing anyway ;-)
Original comment by christian.a.reiter@gmail.com
on 19 Dec 2012 at 10:49
This issue was closed by revision 1bec9c163fc8.
Original comment by eric.mae...@gmail.com
on 19 Dec 2012 at 11:13
Ah, now I see what you meant. In the moment the photo is received all get the
signal. Then the "context" does not help...
But your solution is a good idea.
Original comment by christian.a.reiter@gmail.com
on 19 Dec 2012 at 11:51
Original issue reported on code.google.com by
eric.mae...@gmail.com
on 19 Dec 2012 at 10:07