summaryrefslogtreecommitdiffstats
path: root/tests/QtUiTools/bug_913.py
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-07-04 18:29:46 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-07-11 15:11:56 -0300
commitf1a737a2207b57d8976d4b0dc64c33e378dfe302 (patch)
tree69cd2102f683c67c2756cc9139daf7747a86c9f5 /tests/QtUiTools/bug_913.py
parent505cf202fbf82dca6d3742166195273e103057fc (diff)
downloadpyside-f1a737a2207b57d8976d4b0dc64c33e378dfe302.tar.gz
pyside-f1a737a2207b57d8976d4b0dc64c33e378dfe302.tar.xz
pyside-f1a737a2207b57d8976d4b0dc64c33e378dfe302.zip
Fix bug 913 - "Widgets inside QTabWidget are not exported as members of the containing widget"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'tests/QtUiTools/bug_913.py')
-rw-r--r--tests/QtUiTools/bug_913.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/QtUiTools/bug_913.py b/tests/QtUiTools/bug_913.py
new file mode 100644
index 0000000..f42ce4a
--- /dev/null
+++ b/tests/QtUiTools/bug_913.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import sys
+import unittest
+from helper import adjust_filename
+
+from PySide.QtCore import *
+from PySide.QtGui import *
+from PySide.QtUiTools import *
+
+class TestBug913 (unittest.TestCase):
+
+ def testIt(self):
+ app = QApplication([])
+
+ loader = QUiLoader()
+ widget = loader.load(adjust_filename('bug_913.ui', __file__))
+ widget.tabWidget.currentIndex() # direct child is available as member
+ widget.le_first.setText('foo') # child of QTabWidget must also be available!
+
+if __name__ == '__main__':
+ unittest.main()