summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2009-07-28 23:49:26 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2009-07-28 23:49:26 (GMT)
commite0238a6d8a6a567dbdf598983dedbe4a58a9ef2d (patch)
tree64e158abf55ebdcb50aade0af52e1e92e53c3e16 /tests
parent46a78065b4f971d58f91b7eddb7487529ce153c5 (diff)
downloadQt-e0238a6d8a6a567dbdf598983dedbe4a58a9ef2d.zip
Qt-e0238a6d8a6a567dbdf598983dedbe4a58a9ef2d.tar.gz
Qt-e0238a6d8a6a567dbdf598983dedbe4a58a9ef2d.tar.bz2
Fixed compile of tst_qitemeditorfactory.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qitemeditorfactory/tst_qitemeditorfactory.cpp10
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;