diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-07-03 11:28:40 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-07-03 11:28:40 (GMT) |
commit | 6fa67856b88aaab401ef056b5f22d74a491857c3 (patch) | |
tree | bbc70154738a53202c2ea91aed37bca118b2117f /tests | |
parent | d010f184de1fd47ec2766bd7cd3a5dccd3b543e6 (diff) | |
parent | b82e27ad7642ae76a5e918b41f0e65ecc27034fc (diff) | |
download | Qt-6fa67856b88aaab401ef056b5f22d74a491857c3.zip Qt-6fa67856b88aaab401ef056b5f22d74a491857c3.tar.gz Qt-6fa67856b88aaab401ef056b5f22d74a491857c3.tar.bz2 |
Merge branch 'master' of git@scm.dev.troll.no:qt/qt-s60-public
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qitemeditorfactory/tst_qitemeditorfactory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qitemeditorfactory/tst_qitemeditorfactory.cpp b/tests/auto/qitemeditorfactory/tst_qitemeditorfactory.cpp index d9a7d56..e235ff5 100644 --- a/tests/auto/qitemeditorfactory/tst_qitemeditorfactory.cpp +++ b/tests/auto/qitemeditorfactory/tst_qitemeditorfactory.cpp @@ -59,13 +59,13 @@ void tst_QItemEditorFactory::createEditor() QCOMPARE(w->metaObject()->className(), "QExpandingLineEdit"); } -void tst_QItemEditorFactory::createCustomEditor() +//we make it inherit from QObject so that we can use QPointer +class MyEditor : public QObject, public QStandardItemEditorCreator<QDoubleSpinBox> { - //we make it inherit from QObject so that we can use QPointer - class MyEditor : public QObject, public QStandardItemEditorCreator<QDoubleSpinBox> - { - }; +}; +void tst_QItemEditorFactory::createCustomEditor() +{ QPointer<MyEditor> creator = new MyEditor; QPointer<MyEditor> creator2 = new MyEditor; |