qt5base-lts/tests/auto
Marc Mutz 0e8279b7bc QObject: add a macro for conveniently setting the object name
This is a simplified port of KDTools' KDAB_SET_OBJECT_NAME.
It simply assigns the variable name as the objectName of
a QObject, uic-style. It uses a small helper function so
that it works on references as well as pointer variables.

  QLabel label;
  QLabel *pLabel = new QLabel();
  Q_SET_OBJECT_NAME(label);
  Q_SET_OBJECT_NAME(pLabel);

Change-Id: I25fec0c90f33249a3ea5d2dd622ab708019fd101
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-07-25 14:57:08 +02:00
..
cmake Add tests of the various testlib definition possibilities. 2012-07-24 08:44:27 +02:00
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Remove insignification from QtConcurrentFilter test. 2012-04-19 13:26:51 +02:00
corelib QObject: add a macro for conveniently setting the object name 2012-07-25 14:57:08 +02:00
dbus Make test work on Mac OS X 2012-06-23 16:25:47 +02:00
gui Deprecate the qWaitForWindowShown(QWindow *) method. 2012-07-25 07:24:49 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix some spelling errors 2012-07-11 14:52:37 +02:00
opengl Implement waitForWindowExposed and friends for widget windows. 2012-07-20 09:27:28 +02:00
other Split QWidgetsVariant tests into a separate testcase. 2012-07-23 17:47:51 +02:00
printsupport Replace Q_WS_ in tests by Q_OS_ or check platform names. 2012-07-16 16:30:55 +02:00
shared Expose QPA API under qpa/* 2012-05-07 20:25:24 +02:00
sql Fix error when inserting to tables with datetime fields with QODBC 2012-07-16 23:48:10 +02:00
testlib Add QSignalSpy::wait() method. 2012-07-25 13:31:14 +02:00
tools Add some tests to note that private signals can't be overloads. 2012-07-13 19:21:55 +02:00
widgets QtWidgets: use nullary version of qRegisterMetaType<T>("T") 2012-07-25 13:33:05 +02:00
xml remove some qmake -project boilerplate from project files 2012-06-19 16:39:52 +02:00
auto.pro Tests: Fix printsupport profiles. 2012-07-12 11:15:58 +02:00
network-settings.h Fix auto tests build with gcc 4.7 2012-05-23 00:42:20 +02:00
platformquirks.h Remove #ifdef Q_WS_ / include / #endif conditionals. 2012-07-16 16:30:55 +02:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00