diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-03 22:23:44 -0600 |
commit | 203ba231d0276943aae36111f9ec1e949f3c6a4c (patch) | |
tree | f039f7a5b5fc2da88a96876971bac580d87f6788 /examples/xmlmenudemo.py | |
parent | fd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff) | |
download | pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip |
Initial TQt conversion
Diffstat (limited to 'examples/xmlmenudemo.py')
-rw-r--r-- | examples/xmlmenudemo.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/xmlmenudemo.py b/examples/xmlmenudemo.py index f9b70b3..1ef5ef7 100644 --- a/examples/xmlmenudemo.py +++ b/examples/xmlmenudemo.py @@ -41,7 +41,7 @@ True = not False import sys, os -from qt import QPopupMenu, SIGNAL, QLabel, QIconSet +from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut, KGlobal from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\ @@ -67,7 +67,7 @@ class MainWin (KMainWindow): self.dynamicActions() # Can't do this until the toolBar has been created in createGUI - stretchlbl = QLabel ("", self.toolBar ()) + stretchlbl = TQLabel ("", self.toolBar ()) self.toolBar ().setStretchableWidget (stretchlbl) self.initStatusBar () @@ -104,7 +104,7 @@ class MainWin (KMainWindow): # NOTE!!!! You must specify a parent and name for the action object in its constructor # Normally in a constructor like # - # someObject (QWidget *parent = 0, const char *name = 0) + # someObject (TQWidget *parent = 0, const char *name = 0) # # the parent may or may not be assigned, but widgets usually ignore the # name argument. For an action of *any* type (other than KStdAction), @@ -134,7 +134,7 @@ class MainWin (KMainWindow): # Need to assign an icon to actionMenu below icons = KIconLoader () - iconSet = QIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar)) + iconSet = TQIconSet (icons.loadIcon ("viewmag", KIcon.Toolbar)) # Nested menus using KActions (also nested on toolbar) self.actionMenu = KActionMenu ("Action Menu", acts, "actionMenu") @@ -271,7 +271,7 @@ class MainWin (KMainWindow): description = "A basic application template" version = "1.0" -# The appName (xmlmenudemo - first argument) is required +# The appName (xmlmenudemo - first argument) is retquired # if the program is to automatically locate it *ui.rc file aboutData = KAboutData ("xmlmenudemo", "xmlmenudemo",\ version, description, KAboutData.License_GPL,\ |