diff options
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) |