Fix bug 797 - "error on ui file load"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
parent
71cd11a1c3
commit
fd2abb11f5
3 changed files with 14 additions and 2 deletions
|
|
@ -105,7 +105,7 @@
|
||||||
<parent index="2" action="add"/>
|
<parent index="2" action="add"/>
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
<inject-code>
|
<inject-code>
|
||||||
//Avoid calling the original function: %CPPSELF.load
|
// Avoid calling the original function: %CPPSELF.%FUNCTION_NAME()
|
||||||
%PYARG_0 = quiloader_load_ui_from_device(%CPPSELF, %1, %2);
|
%PYARG_0 = quiloader_load_ui_from_device(%CPPSELF, %1, %2);
|
||||||
</inject-code>
|
</inject-code>
|
||||||
</modify-function>
|
</modify-function>
|
||||||
|
|
@ -123,7 +123,7 @@
|
||||||
<parent index="2" action="add"/>
|
<parent index="2" action="add"/>
|
||||||
</modify-argument>
|
</modify-argument>
|
||||||
<inject-code>
|
<inject-code>
|
||||||
//Avoid calling the original function: %CPPSELF.load
|
// Avoid calling the original function: %CPPSELF.%FUNCTION_NAME()
|
||||||
%PYARG_0 = quiloader_load_ui(%CPPSELF, %1, %2);
|
%PYARG_0 = quiloader_load_ui(%CPPSELF, %1, %2);
|
||||||
</inject-code>
|
</inject-code>
|
||||||
</add-function>
|
</add-function>
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,6 @@ PYSIDE_TEST(bug_376.py)
|
||||||
PYSIDE_TEST(bug_392.py)
|
PYSIDE_TEST(bug_392.py)
|
||||||
PYSIDE_TEST(bug_426.py)
|
PYSIDE_TEST(bug_426.py)
|
||||||
PYSIDE_TEST(bug_552.py)
|
PYSIDE_TEST(bug_552.py)
|
||||||
|
PYSIDE_TEST(bug_797.py)
|
||||||
PYSIDE_TEST(uiloader_test.py)
|
PYSIDE_TEST(uiloader_test.py)
|
||||||
PYSIDE_TEST(ui_test.py)
|
PYSIDE_TEST(ui_test.py)
|
||||||
|
|
|
||||||
11
tests/QtUiTools/bug_797.py
Normal file
11
tests/QtUiTools/bug_797.py
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
from PySide import QtUiTools
|
||||||
|
from PySide import QtCore
|
||||||
|
from PySide import QtGui
|
||||||
|
from helper import adjust_filename
|
||||||
|
|
||||||
|
app = QtGui.QApplication([])
|
||||||
|
loader = QtUiTools.QUiLoader()
|
||||||
|
file = QtCore.QFile(adjust_filename('bug_552.ui', __file__))
|
||||||
|
w = QtGui.QWidget()
|
||||||
|
# An exception can't be thrown
|
||||||
|
mainWindow = loader.load(file, w)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue