Fix bug#557 - "Segmentation fault in QDeclarativeComponent.loadUrl()"
The signature QDeclarativeComponent(QObject*) should not exist, it's not
documented and just creates a useless QDeclarativeComponent when used,
useless in the sense that it will segfault when used.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
parent
bcb6a2eb75
commit
cfeea7ec04
3 changed files with 16 additions and 0 deletions
|
|
@ -66,6 +66,7 @@
|
||||||
<object-type name="QDeclarativeExtensionInterface"/>
|
<object-type name="QDeclarativeExtensionInterface"/>
|
||||||
<object-type name="QDeclarativeComponent">
|
<object-type name="QDeclarativeComponent">
|
||||||
<enum-type name="Status"/>
|
<enum-type name="Status"/>
|
||||||
|
<modify-function signature="QDeclarativeComponent(QObject*)" remove="all" />
|
||||||
</object-type>
|
</object-type>
|
||||||
<object-type name="QDeclarativeContext">
|
<object-type name="QDeclarativeContext">
|
||||||
<modify-function signature="setContextProperty(const QString &, QObject*)">
|
<modify-function signature="setContextProperty(const QString &, QObject*)">
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
PYSIDE_TEST(bug_451.py)
|
PYSIDE_TEST(bug_451.py)
|
||||||
PYSIDE_TEST(bug_456.py)
|
PYSIDE_TEST(bug_456.py)
|
||||||
|
PYSIDE_TEST(bug_557.py)
|
||||||
PYSIDE_TEST(qdeclarativenetwork_test.py)
|
PYSIDE_TEST(qdeclarativenetwork_test.py)
|
||||||
PYSIDE_TEST(qdeclarativeview_test.py)
|
PYSIDE_TEST(qdeclarativeview_test.py)
|
||||||
PYSIDE_TEST(connect_python_qml.py)
|
PYSIDE_TEST(connect_python_qml.py)
|
||||||
|
|
|
||||||
14
tests/QtDeclarative/bug_557.py
Normal file
14
tests/QtDeclarative/bug_557.py
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
from PySide.QtCore import *
|
||||||
|
from PySide.QtGui import *
|
||||||
|
from PySide.QtDeclarative import *
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
app = QApplication(sys.argv)
|
||||||
|
|
||||||
|
engine = QDeclarativeEngine()
|
||||||
|
component = QDeclarativeComponent(engine)
|
||||||
|
|
||||||
|
# This should segfault if the QDeclarativeComponent has not QDeclarativeEngine
|
||||||
|
component.loadUrl(QUrl.fromLocalFile('foo.qml'))
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue