Fix BUG #1048
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
Reviewer: Willer Moreira <willer.moreira@openbossa.org>
Hugo Parente Lima <hugo.lima@openbossa.org>
This commit is contained in:
parent
45ad11e5be
commit
8160e529e2
3 changed files with 12 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ inline void addLayoutOwnership(QLayout* layout, QLayout* other)
|
||||||
|
|
||||||
inline void addLayoutOwnership(QLayout* layout, QLayoutItem* item)
|
inline void addLayoutOwnership(QLayout* layout, QLayoutItem* item)
|
||||||
{
|
{
|
||||||
|
if (!item)
|
||||||
|
return;
|
||||||
|
|
||||||
QWidget* w = item->widget();
|
QWidget* w = item->widget();
|
||||||
if (w)
|
if (w)
|
||||||
addLayoutOwnership(layout, w);
|
addLayoutOwnership(layout, w);
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ PYSIDE_TEST(bug_991.py)
|
||||||
PYSIDE_TEST(bug_998.py)
|
PYSIDE_TEST(bug_998.py)
|
||||||
PYSIDE_TEST(bug_1002.py)
|
PYSIDE_TEST(bug_1002.py)
|
||||||
PYSIDE_TEST(bug_1006.py)
|
PYSIDE_TEST(bug_1006.py)
|
||||||
|
PYSIDE_TEST(bug_1048.py)
|
||||||
PYSIDE_TEST(customproxywidget_test.py)
|
PYSIDE_TEST(customproxywidget_test.py)
|
||||||
PYSIDE_TEST(deepcopy_test.py)
|
PYSIDE_TEST(deepcopy_test.py)
|
||||||
PYSIDE_TEST(event_filter_test.py)
|
PYSIDE_TEST(event_filter_test.py)
|
||||||
|
|
|
||||||
8
tests/QtGui/bug_1048.py
Normal file
8
tests/QtGui/bug_1048.py
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
from PySide import QtGui
|
||||||
|
|
||||||
|
a = QtGui.QApplication([])
|
||||||
|
|
||||||
|
w = QtGui.QWidget()
|
||||||
|
l = QtGui.QGridLayout(w)
|
||||||
|
|
||||||
|
l.itemAtPosition(0, 0)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue