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>2012-03-08 16:53:59 -0300
commitc8ecf9fea606679be567b9799fd6afb40a370564 (patch)
treee0692f140f90f0e2d18e416335ae628c7e36bc6d
parent8f34f94da365825c2d21e02fb10a44d4cefb313b (diff)
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 26a33436..103c2d35 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)