summaryrefslogtreecommitdiffstats
path: root/examples/opengl/openglwindow/openglwindow.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-03-20 14:14:23 +0100
committerMarc Mutz <marc.mutz@qt.io>2024-03-22 02:44:50 +0100
commite68edd6a07adf33db14c2d2f6e4e3785596fa496 (patch)
treef90363eae9e66428fb97239dbdb941f1dff02521 /examples/opengl/openglwindow/openglwindow.h
parent12a432c80feba60ced4c67b496ac0762bacb8777 (diff)
QSignalSpy: share more code
Add per-ctor verify() functions that take care of the warnings for invalid inputs, and return a struct { QObject*; QMetaMethod; } to feed into a delegatee constructor. This solves the problem that the varying parts between the ctors are at the beginning, not the end, using another level of indirection, and will eventually allow to make the `args` and `sig` members const, and therefore remove the need to protect either with the mutex. This patch tries to keep the diff minimal. I'm planning to de-inline most of the class in a future commit, so it doesn't matter that private and public sections are interleaved, that will be cleaned up when the code is moved to a .cpp file later. Task-number: QTBUG-123544 Change-Id: Idc628c927736880a8fd580089ed5177361c94ed9 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/opengl/openglwindow/openglwindow.h')
0 files changed, 0 insertions, 0 deletions