aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-05 14:23:09 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-07-05 17:39:24 -0300
commit2963909063e434936ba095ba9532782e7e3fd518 (patch)
tree7866d04dd9be0d0268a5bb7e641568c608b4a38f /tests
parent82d1d827557f7f9aadbc4fe1f526ce2162f03621 (diff)
Remove use of deprecated types.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtDeclarative/qdeclarativeview_test.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/QtDeclarative/qdeclarativeview_test.py b/tests/QtDeclarative/qdeclarativeview_test.py
index 8101c5f01..7a2b657e1 100644
--- a/tests/QtDeclarative/qdeclarativeview_test.py
+++ b/tests/QtDeclarative/qdeclarativeview_test.py
@@ -2,8 +2,7 @@
import unittest
-from PySide.QtCore import QUrl, QStringList, QVariant
-from PySide.QtGui import QPushButton
+from PySide.QtCore import QUrl
from PySide.QtDeclarative import QDeclarativeView
from helper import adjust_filename, TimedQApplication
@@ -14,7 +13,7 @@ class TestQDeclarativeView(TimedQApplication):
def testQDeclarativeViewList(self):
view = QDeclarativeView()
- dataList = QStringList(["Item 1", "Item 2", "Item 3", "Item 4"])
+ dataList = ["Item 1", "Item 2", "Item 3", "Item 4"]
ctxt = view.rootContext()
ctxt.setContextProperty("myModel", dataList)