aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pysidetest/testview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pysidetest/testview.cpp')
-rw-r--r--tests/pysidetest/testview.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/pysidetest/testview.cpp b/tests/pysidetest/testview.cpp
index c7e9c6db4..22ef9ddb1 100644
--- a/tests/pysidetest/testview.cpp
+++ b/tests/pysidetest/testview.cpp
@@ -2,14 +2,11 @@
#include <QDebug>
#include <stdio.h>
-QObject*
+QVariant
TestView::getData()
{
QModelIndex index;
QVariant data = m_model->data(index);
- QObject* obj = 0;
- if (data.canConvert<QObject*>())
- obj = data.value<QObject*>();
- return obj;
+ return data;
}