~ubuntu-branches/ubuntu/utopic/pyside/utopic

« back to all changes in this revision

Viewing changes to tests/QtGui/bug_668.py

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2011-02-18 18:01:00 UTC
  • mfrom: (1.2.3 upstream) (6.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110218180100-vaczjij7g08fzfme
Tags: 1.0.0~rc1-1
* New 1.0.0~rc1 upstream release
  - Bump the B-D chain versions:
    + apiextractor to 0.10.0-2~
    + generatorrunner to 0.6.6
    + shiboken to 1.0.0~rc1
* Update patches to ~rc1.
* debian/watch: update to handle Release Candidates too.
* Bump XS-Python-Version to >= 2.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# coding: utf-8
 
2
from PySide.QtCore import *
 
3
from PySide.QtGui  import *
 
4
 
 
5
import sys
 
6
 
 
7
class A(QMainWindow):
 
8
    def __init__(self, parent=None):
 
9
        super(A, self).__init__(parent)
 
10
        a = QFileSystemModel(self)
 
11
        a.setRootPath(QDir.homePath())
 
12
 
 
13
        v = QTreeView(self)
 
14
        v.setModel(a)
 
15
        self.setCentralWidget(v)
 
16
 
 
17
app = QApplication([])
 
18
m = A()
 
19
m.show()
 
20
QTimer.singleShot(0, m.close)
 
21
app.exec_()