diff options
author | Giuseppe D'Angelo <[email protected]> | 2025-01-14 10:13:19 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <[email protected]> | 2025-01-14 15:37:42 +0100 |
commit | ade3bb1c5224a9155a2a2f965fa70740aa9ec8a7 (patch) | |
tree | 7aa16396023a1d7ddaf2f5c396619144c3dd16bf /tests/manual/inputmethodhints/inputmethodhints.h | |
parent | 39df9e1858a4115bc19b6a4dee5d687c5ee00d21 (diff) |
QShortcut: fix build under QT_NO_CONTEXTLESS_CONNECT
QShortcut has a constructor that takes a _parent_ object and a
function to invoke, and it will internally connect its activated()
signal to that function. This connection will not provide a
context object (the parent is not used to this purpose).
Given it's not clear what the context should be if any (the parent?
`this`?), I'm not at ease at just supplying "something" as the context.
Instead, hide the constructor if we're under QT_NO_CONTEXTLESS_CONNECT.
There's another constructor where the caller can supply a context.
Change-Id: I21befcc86eeb07e65eadee1222757ecc5bab1d2c
Pick-to: 6.9 6.8
Reviewed-by: Richard Moe Gustavsen <[email protected]>
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'tests/manual/inputmethodhints/inputmethodhints.h')
0 files changed, 0 insertions, 0 deletions