diff options
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,\ |