Remove use of deprecated types.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
82d1d82755
commit
2963909063
1 changed files with 2 additions and 3 deletions
|
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from PySide.QtCore import QUrl, QStringList, QVariant
|
from PySide.QtCore import QUrl
|
||||||
from PySide.QtGui import QPushButton
|
|
||||||
from PySide.QtDeclarative import QDeclarativeView
|
from PySide.QtDeclarative import QDeclarativeView
|
||||||
|
|
||||||
from helper import adjust_filename, TimedQApplication
|
from helper import adjust_filename, TimedQApplication
|
||||||
|
|
@ -14,7 +13,7 @@ class TestQDeclarativeView(TimedQApplication):
|
||||||
def testQDeclarativeViewList(self):
|
def testQDeclarativeViewList(self):
|
||||||
view = QDeclarativeView()
|
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 = view.rootContext()
|
||||||
ctxt.setContextProperty("myModel", dataList)
|
ctxt.setContextProperty("myModel", dataList)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue