From 203ba231d0276943aae36111f9ec1e949f3c6a4c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 3 Dec 2011 22:23:44 -0600 Subject: Initial TQt conversion --- examples/menudemo.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/menudemo.py') 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) -- cgit v1.2.1