diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2022-03-03 08:28:30 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2022-03-11 20:15:48 +0100 |
| commit | efe411b8b70fac35eee65371f95636880baee9d3 (patch) | |
| tree | befd4f6c45737c683c5c71153960867592ae2601 /examples/opengl/qopenglwidget/glwidget.cpp | |
| parent | b0d106267c773a177bc3316e387261f2696692b5 (diff) | |
qobjectdefs.h: DRY the SIGNAL/SLOT macros
Factor common code into a separate macro to DRY.
The immediate paractical consequence is that we now have a way to
reliably get a const char[] from the SIGNAL or SLOT macros, e.g. for
storing in a QOffsetStringArray, without causing compile errors in
debug mode or running the danger of causing runtime initialization via
qFlagLocation, which is of limited value in this circumstance, anyway,
because qFlagLocation only stores the last two strings.
Pick-to: 6.3
Change-Id: I67401858e94eedc1200fdd08e695fd56d10f8560
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/opengl/qopenglwidget/glwidget.cpp')
0 files changed, 0 insertions, 0 deletions
