Putting back QFileInfo(QFile) and setFile(QFile)
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
parent
262c32e87b
commit
7cc4ab54aa
2 changed files with 17 additions and 2 deletions
|
|
@ -1848,8 +1848,6 @@
|
||||||
<include file-name="QDateTime" location="global"/>
|
<include file-name="QDateTime" location="global"/>
|
||||||
<include file-name="QDir" location="global"/>
|
<include file-name="QDir" location="global"/>
|
||||||
</extra-includes>
|
</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>
|
||||||
<value-type name="QByteArray" hash-function="qHash">
|
<value-type name="QByteArray" hash-function="qHash">
|
||||||
<extra-includes>
|
<extra-includes>
|
||||||
|
|
|
||||||
17
tests/qtcore/qfileinfo_test.py
Normal file
17
tests/qtcore/qfileinfo_test.py
Normal file
|
|
@ -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()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue