f6befd3e63
Store isWidgetType and isWindowType once to avoid multiple tests, and use a single QWidget* variable for widget receivers once we handle those explicitly, rather than separate declarations for each event type. Fix indentation to make it more obvious that the entire switch statement is only executed for widget receivers. Remove unreachable code for QGraphicsWidget key handling. At that point, we already know that the receiver is a widget, which QGraphicsWidget is not, so this code was never executed anyway. Minor clean-ups, coding style improvements, and standardisations of repeating patterns. Change-Id: Idfe944f041ae82372b17082a5ffc4df13802359b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> |
||
---|---|---|
.github/workflows | ||
bin | ||
cmake | ||
coin | ||
config.tests | ||
dist | ||
doc | ||
examples | ||
lib | ||
libexec | ||
mkspecs | ||
qmake | ||
src | ||
tests | ||
util | ||
.cmake.conf | ||
.gitattributes | ||
.gitignore | ||
.lgtm.yml | ||
.tag | ||
CMakeLists.txt | ||
conanfile.py | ||
config_help.txt | ||
configure | ||
configure.bat | ||
configure.cmake | ||
dependencies.yaml | ||
LICENSE.FDL | ||
LICENSE.GPL2 | ||
LICENSE.GPL3 | ||
LICENSE.GPL3-EXCEPT | ||
LICENSE.LGPL3 | ||
LICENSE.LGPLv3 | ||
LICENSE.QT-LICENSE-AGREEMENT | ||
qt_cmdline.cmake | ||
sync.profile |