diff options
author | Timothy Pearson <[email protected]> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /examples/uikmdi.py | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'examples/uikmdi.py')
-rw-r--r-- | examples/uikmdi.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/uikmdi.py b/examples/uikmdi.py index 95960ee..90cd721 100644 --- a/examples/uikmdi.py +++ b/examples/uikmdi.py @@ -28,7 +28,7 @@ All is not rosy, however: import os import sys -from qt import SIGNAL, QVBoxLayout, QLabel +from qt import SIGNAL, TQVBoxLayout, TQLabel from tdecore import i18n, KAboutData, KApplication, KGlobal, KIcon, KCmdLineArgs from tdeui import KDockWidget, KListBox, KStdAction @@ -41,7 +41,7 @@ except (ImportError, ): sigChildCloseRequest = SIGNAL('childWindowCloseRequest(KMdiChildView *)') sigChildViewActivated = SIGNAL('viewActivated(KMdiChildView *)') -sigBoxSelectionChanged = SIGNAL('selectionChanged(QListBoxItem *)') +sigBoxSelectionChanged = SIGNAL('selectionChanged(TQListBoxItem *)') def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall): @@ -126,12 +126,12 @@ class KmdiExample(KMdiMainFrm): view = KMdiChildView(label, self) self.childs[label] = view view.setIcon(getIcon(icon)) - layout = QVBoxLayout(view) + layout = TQVBoxLayout(view) layout.setAutoAdd(True) lbl = i18n('Label for a view with an icon named %s' % text) - lbl = QLabel(lbl, view) - pxm = QLabel('', view) + lbl = TQLabel(lbl, view) + pxm = TQLabel('', view) pxm.setPixmap(getIcon(icon, size=KIcon.SizeLarge)) self.addWindow(view) |