summaryrefslogtreecommitdiffstats
path: root/tests/auto/qitemeditorfactory
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@nokia.com>2009-07-02 11:44:57 (GMT)
committerLiang Qi <liang.qi@nokia.com>2009-07-02 11:44:57 (GMT)
commit79587657e015e64af7cdff3f086310475b5bf048 (patch)
tree6aeac8a51dee090ad7772b70a6d51257cadd00f1 /tests/auto/qitemeditorfactory
parent27c4a4d9c91e6c16d1d43d2d99c0176a58650e15 (diff)
downloadQt-79587657e015e64af7cdff3f086310475b5bf048.zip
Qt-79587657e015e64af7cdff3f086310475b5bf048.tar.gz
Qt-79587657e015e64af7cdff3f086310475b5bf048.tar.bz2
Fixed a compilation issue for tests/auto/qitemeditorfactory.
Diffstat (limited to 'tests/auto/qitemeditorfactory')
-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;