summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Leclanche <adys.wh@gmail.com>2011-02-16 11:38:04 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2011-02-16 11:40:16 -0200
commitadfaf21063d4d996ee0c3e28b5c41999209a93f9 (patch)
tree9ecb14a8efecaa14e1654c769ba9e8b1cceb6f90
parent691841f829a87b3e9d765f9b41c360ca275991ad (diff)
downloadpyside-adfaf21063d4d996ee0c3e28b5c41999209a93f9.tar.gz
pyside-adfaf21063d4d996ee0c3e28b5c41999209a93f9.tar.xz
pyside-adfaf21063d4d996ee0c3e28b5c41999209a93f9.zip
Fix bug 687 - "[PATCH] QUiLoader code example crashes"
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--doc/codesnippets/doc/src/snippets/quiloader/mywidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/codesnippets/doc/src/snippets/quiloader/mywidget.cpp b/doc/codesnippets/doc/src/snippets/quiloader/mywidget.cpp
index 26a3343..103c2d3 100644
--- a/doc/codesnippets/doc/src/snippets/quiloader/mywidget.cpp
+++ b/doc/codesnippets/doc/src/snippets/quiloader/mywidget.cpp
@@ -47,6 +47,7 @@
//! [0]
class MyWidget(QWidget):
def __init__(self, parent):
+ super(QWidget, self).__init__(parent)
loader = QUiLoader()
file = QFile(":/forms/myform.ui")
file.open(QFile.ReadOnly)