summaryrefslogtreecommitdiffstats
path: root/examples/menudemo.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/menudemo.py')
-rw-r--r--examples/menudemo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/menudemo.py b/examples/menudemo.py
index b2b5603..8f605a2 100644
--- a/examples/menudemo.py
+++ b/examples/menudemo.py
@@ -41,7 +41,7 @@ True = not False
import sys
-from qt import QPopupMenu, SIGNAL, QLabel, QIconSet
+from qt import TQPopupMenu, SIGNAL, TQLabel, TQIconSet
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KIcon, KIconLoader, KShortcut
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KToggleAction, KFontSizeAction, KFontAction, KRadioAction,\
@@ -98,7 +98,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")
@@ -115,7 +115,7 @@ class MainWin (KMainWindow):
# self.radio3Action.setExclusiveGroup ("Radio")
def initMenus (self):
- fileMenu = QPopupMenu (self)
+ fileMenu = TQPopupMenu (self)
self.newAction.plug (fileMenu)
self.openAction.plug (fileMenu)
fileMenu.insertSeparator ()
@@ -127,7 +127,7 @@ class MainWin (KMainWindow):
self.quitAction.plug (fileMenu)
self.menuBar ().insertItem (i18n ("&File"), fileMenu)
- editMenu = QPopupMenu (self)
+ editMenu = TQPopupMenu (self)
self.undoAction.plug (editMenu)
self.redoAction.plug (editMenu)
editMenu.insertSeparator ()
@@ -142,7 +142,7 @@ class MainWin (KMainWindow):
self.specialAction.plug (editMenu)
self.menuBar ().insertItem (i18n ("&Edit"), editMenu)
- demoMenu = QPopupMenu (self)
+ demoMenu = TQPopupMenu (self)
self.toggle1Action.plug (demoMenu)
self.toggle2Action.plug (demoMenu)
self.separateAction.plug (demoMenu)
@@ -196,7 +196,7 @@ class MainWin (KMainWindow):
# to the full width of the toolbar when the window is
# maximized (comment out the next two lines to see
# what happens)
- stretchlbl = QLabel ("", self.toolBar ())
+ stretchlbl = TQLabel ("", self.toolBar ())
self.toolBar ().setStretchableWidget (stretchlbl)