summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwriteinitialization.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2023-09-05 00:18:54 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2023-09-06 19:24:39 +0200
commit0bd1fc006097e481d8b92ee1c5246ffa1ae9379f (patch)
treea69a1d9e57297b10d18a7a16f43c8eeb88960f1c /src/tools/uic/cpp/cppwriteinitialization.h
parent6add599079f3b653256957eeca2042095711d04e (diff)
QCoreApplication::requestPermission: streamline the implementation
Having a context object is the common case, so it's worth optimizing for it. Remove the routing through a metacall event, which isn't needed, in favor of a simple queued invokeMethod. Also, always provide a context object when calling the slot, even if one wasn't provided by the user; simply use the "sender" object, that is, the internal QObject that is activating the slot. (This way we match the semantics context-less connect() overload, which uses the sender object as a context.) Change-Id: I72051fc48cbda5729145557f15cec4693ffde6ce Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.h')
0 files changed, 0 insertions, 0 deletions