diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-02-08 17:08:08 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-09 19:23:19 -0200 |
commit | 7cc4ab54aaee271d8230eb16d42d99fd7201f2b3 (patch) | |
tree | 23630e16b2ab392fe2e406a2937ae21e7f5da8dd | |
parent | 262c32e87b6d56159b5dd75403061d7c678f64b4 (diff) |
Putting back QFileInfo(QFile) and setFile(QFile)
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 2 | ||||
-rw-r--r-- | tests/qtcore/qfileinfo_test.py | 17 |
2 files changed, 17 insertions, 2 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 63f67fac9..312a9ae19 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1848,8 +1848,6 @@ <include file-name="QDateTime" location="global"/> <include file-name="QDir" location="global"/> </extra-includes> - <modify-function signature="QFileInfo(const QFile&)" remove="all" /> <!-- FIXME Removed due to a shiboken bug--> - <modify-function signature="setFile(const QFile&)" remove="all" /> <!-- FIXME Removed due to a shiboken bug--> </value-type> <value-type name="QByteArray" hash-function="qHash"> <extra-includes> diff --git a/tests/qtcore/qfileinfo_test.py b/tests/qtcore/qfileinfo_test.py new file mode 100644 index 000000000..580b5a7d5 --- /dev/null +++ b/tests/qtcore/qfileinfo_test.py @@ -0,0 +1,17 @@ + +import unittest + +import os +import tempfile + +from PySide.QtCore import QFile, QFileInfo + +class QFileConstructor(unittest.TestCase): + '''QFileInfo constructor with qfile''' + + def testBasic(self): + '''QFileInfo(QFile)''' + obj = QFileInfo(QFile()) + +if __name__ == '__main__': + unittest.main() |