qt5base-lts/tests/auto
Simon Hausmann b480acb372 Allow for private properties to be implemented using QProperty
Recently the moc learned that Q_PROPERTY(int x ...) can mean that "x" is
implemented as QProperty and then allows installing bindings, etc. -
this works by scanning the same class' members.

For our own use of QProperty, we need to place the QProperty member
itself into the d-pointer to be able to maintain the ability to add new
properties without breaking binary compatibility. That however means
that moc can't know that a certain property is backed by QProperty - we
don't scan the members of the private class.

As a workaround, this change enables the syntax where the property type
used in Q_PRIVATE_PROPERTY may be wrapped with QProperty<T>.

In addition this patch fixes the compilation of such declared properties
by ensuring the accessor prefix (t->$accessor) is applied also for the
QProperty related meta call variants.

Change-Id: I8fbdc49319048b57f4eb0b65b56daba0459e9598
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2020-04-30 19:39:19 +02:00
..
cmake Get rid of QT_OPENGL_ES* 2020-04-17 11:50:24 +02:00
concurrent Squash again some tests in concurrentmap 2020-04-21 10:28:06 +02:00
corelib CMake: Fix build of qlogging test on MinGW 2020-04-30 10:13:22 +02:00
dbus Fix autotests after the QHash changes 2020-04-09 20:04:15 +02:00
gui Remove deprecated members from QtGui/image classes 2020-04-29 06:20:07 +02:00
guiapplauncher
installed_cmake
network Merge remote-tracking branch 'origin/5.15' into dev 2020-04-11 14:59:13 +02:00
opengl Get rid of QT_OPENGL_ES* 2020-04-17 11:50:24 +02:00
other tst_Gestures: fix -Wdangling-else GCC warning 2020-04-29 08:10:36 +00:00
printsupport Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
shared QWindowsFontDatabase: Check preferred family names for all fonts 2019-11-29 09:31:21 +01:00
sql QSqlError: Remove deprecated methods 2020-04-06 14:25:12 +02:00
testlib Restructure testlib selftest project 2020-03-24 21:04:43 +01:00
tools Allow for private properties to be implemented using QProperty 2020-04-30 19:39:19 +02:00
widgets tst_QDialogButtonBox: Port away from QAbstractButton::animateClick() 2020-04-29 10:10:37 +02:00
xml Merge remote-tracking branch 'origin/5.15' into dev 2020-03-16 18:41:27 +01:00
auto.pro Disable tests with qemu-arm & developer-build configurations in the CI 2019-10-03 15:12:33 +00:00
CMakeLists.txt cmake: Remove APPLE prefix from platform names 2020-03-16 17:57:56 +01:00
network-settings.h Revert "QAbstractSocket: deprecate 'error' member-function" 2020-02-26 23:07:52 +03:00