diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2014-04-09 10:37:24 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-09 11:29:07 +0200 |
commit | fa4ed60b6976a60a17078722784055bddbba7e1f (patch) | |
tree | 33ac265646a632140945293f0141c82fdb368dd6 /tests/auto/core/handle/tst_handle.cpp | |
parent | 516b6f27cf96378e34f6a0544608e03dbfd5fdcf (diff) |
Fix INDEXBITS in QHandleManager, QHandle
QHandleManager worked only when INDEXBITS was set to the default value 16.
This is corrected now so that a QResourceManager<T, 4> created a
QHandleManager<T, 4> which provides QHandle<T, 4>
Follow up commits will follow for the refactoring of QResourcesManager into
subclasses that can implement their own dedicated memory allocation scheme.
Change-Id: If3b3fb43ae1c9473d9777cf9ba984ba37a65cfa9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests/auto/core/handle/tst_handle.cpp')
-rw-r--r-- | tests/auto/core/handle/tst_handle.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/core/handle/tst_handle.cpp b/tests/auto/core/handle/tst_handle.cpp index 5af3196d1..503257fe2 100644 --- a/tests/auto/core/handle/tst_handle.cpp +++ b/tests/auto/core/handle/tst_handle.cpp @@ -40,6 +40,10 @@ ****************************************************************************/ #include <QtTest/QtTest> + +// Not really clean but as the QHandle(idx, counter) is private +// This allows to use this constructor in the tests +#define private public #include <Qt3DCore/qhandle.h> class tst_Handle : public QObject |