summaryrefslogtreecommitdiffstats
path: root/templates/annotated
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-03 22:23:44 -0600
committerTimothy Pearson <[email protected]>2011-12-03 22:23:44 -0600
commit203ba231d0276943aae36111f9ec1e949f3c6a4c (patch)
treef039f7a5b5fc2da88a96876971bac580d87f6788 /templates/annotated
parentfd35f4a8382b7d223bc0325b9ca3f88515778aa0 (diff)
downloadpytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.tar.gz
pytde-203ba231d0276943aae36111f9ec1e949f3c6a4c.zip
Initial TQt conversion
Diffstat (limited to 'templates/annotated')
-rw-r--r--templates/annotated/basicapp.py6
-rw-r--r--templates/annotated/menuapp1.py8
-rw-r--r--templates/annotated/menuapp2.py12
-rw-r--r--templates/annotated/menuapp3.py2
-rw-r--r--templates/annotated/minimal.py4
-rw-r--r--templates/annotated/systray.py8
-rw-r--r--templates/annotated/systray1.py4
7 files changed, 22 insertions, 22 deletions
diff --git a/templates/annotated/basicapp.py b/templates/annotated/basicapp.py
index d124b76..8af04b7 100644
--- a/templates/annotated/basicapp.py
+++ b/templates/annotated/basicapp.py
@@ -77,7 +77,7 @@ aboutData.addAuthor ("author2", "they did something else", "[email protected]
# Pass the command line arguments and aboutData to
# KCmdLineArgs - this is where KDE will look for
# this information. The KApplication constructor
-# used below *requires* the args are processed
+# used below *retquires* the args are processed
# *before* KApplication is instantiated. There
# is an alternate constructor that takes sys.argv
# as an argument (see minimal.py)
@@ -96,8 +96,8 @@ KCmdLineArgs.init (sys.argv, aboutData)
# of tuples
KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")])
-# instantiate KApplication - no other QObject
-# or QWidget based classes can be instantiated
+# instantiate KApplication - no other TQObject
+# or TQWidget based classes can be instantiated
# until there is a KApplication instance
app = KApplication ()
diff --git a/templates/annotated/menuapp1.py b/templates/annotated/menuapp1.py
index 23184eb..0f0f3f5 100644
--- a/templates/annotated/menuapp1.py
+++ b/templates/annotated/menuapp1.py
@@ -43,7 +43,7 @@ True = not False
import sys
-from qt import QPopupMenu, SIGNAL
+from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader
from tdeui import KMainWindow, KMessageBox
@@ -68,9 +68,9 @@ class MainWin (KMainWindow):
self.initStatusBar ()
def initMenus (self):
- # Create a QPopupMenu - all menus are "popup" menus
+ # Create a TQPopupMenu - all menus are "popup" menus
- fileMenu = QPopupMenu (self)
+ fileMenu = TQPopupMenu (self)
# This is the "simple" KDE-1.0 way. It is not suggested that this
# template actually be used in an application, but it's
@@ -116,7 +116,7 @@ class MainWin (KMainWindow):
self.menuBar ().insertItem (i18n ("&File"), fileMenu)
- editMenu = QPopupMenu (self)
+ editMenu = TQPopupMenu (self)
# "Edit" menu items
editMenu.insertItem (i18n ("Undo"), self.slotUndo, KStdAccel.undo ())
diff --git a/templates/annotated/menuapp2.py b/templates/annotated/menuapp2.py
index 6a5e894..b3b3501 100644
--- a/templates/annotated/menuapp2.py
+++ b/templates/annotated/menuapp2.py
@@ -41,7 +41,7 @@ True = not False
import sys
-from qt import QPopupMenu, SIGNAL
+from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction
@@ -67,7 +67,7 @@ class MainWin (KMainWindow):
# Create the status bar
self.initStatusBar ()
- # Usings actions, only a single line is required
+ # Usings actions, only a single line is retquired
# to enable/disable both the menu item and corresponding
# toolbar button from anywhere in the program
self.saveAction.setEnabled (False)
@@ -112,15 +112,15 @@ class MainWin (KMainWindow):
# or you can use KAction.setIcon to set/change the icon. You
# can also add a tooltip with KAction.setToolTip
- # This KAction constructor requires a QString, an accelerator (0
- # in this case), a slot, and a QObject (None in this case)
+ # This KAction constructor retquires a TQString, an accelerator (0
+ # in this case), a slot, and a TQObject (None in this case)
self.specialAction = KAction (i18n ("Special"), 0, self.slotSpecial, None)
def initMenus (self):
# plug the actions into the menus
- fileMenu = QPopupMenu (self)
+ fileMenu = TQPopupMenu (self)
self.newAction.plug (fileMenu)
self.openAction.plug (fileMenu)
fileMenu.insertSeparator ()
@@ -132,7 +132,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 ()
diff --git a/templates/annotated/menuapp3.py b/templates/annotated/menuapp3.py
index 3748d84..bcea5e1 100644
--- a/templates/annotated/menuapp3.py
+++ b/templates/annotated/menuapp3.py
@@ -41,7 +41,7 @@ True = not False
import sys
-from qt import QPopupMenu, SIGNAL
+from qt import TQPopupMenu, SIGNAL
from tdecore import KApplication, KCmdLineArgs, KAboutData, i18n
from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection
diff --git a/templates/annotated/minimal.py b/templates/annotated/minimal.py
index a84d39e..e021851 100644
--- a/templates/annotated/minimal.py
+++ b/templates/annotated/minimal.py
@@ -56,8 +56,8 @@ class MainWin (KMainWindow):
#-------------------- main ------------------------------------------------
-# instantiate KApplication - no other QObject
-# or QWidget based classes can be instantiated
+# instantiate KApplication - no other TQObject
+# or TQWidget based classes can be instantiated
# until there is a KApplication instance
appName = "template"
app = KApplication (sys.argv, appName)
diff --git a/templates/annotated/systray.py b/templates/annotated/systray.py
index 8e86b10..7f7dc93 100644
--- a/templates/annotated/systray.py
+++ b/templates/annotated/systray.py
@@ -29,7 +29,7 @@ copyright holder.
import sys
-from qt import QWidget, SIGNAL
+from qt import TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader
from tdeui import KSystemTray
@@ -42,13 +42,13 @@ KMainWindow is closed, it also shuts down KApplication and the
program terminates.
One way around that (not necessarily the best way - see systray1.py)
-is to make the "main window" a QWidget or other QWidget subclass
+is to make the "main window" a TQWidget or other TQWidget subclass
that's not KMainWindow.
"""
-class MainWin (QWidget):
+class MainWin (TQWidget):
def __init__ (self, *args):
- apply (QWidget.__init__, (self,) + args)
+ apply (TQWidget.__init__, (self,) + args)
#-------------------- main ------------------------------------------------
diff --git a/templates/annotated/systray1.py b/templates/annotated/systray1.py
index bfff650..e911f38 100644
--- a/templates/annotated/systray1.py
+++ b/templates/annotated/systray1.py
@@ -1,6 +1,6 @@
"""
A basic system tray application - you can combine this with code from
-menuapp2.py or menuapp3.py to quickly build a full-blown application
+menuapp2.py or menuapp3.py to tquickly build a full-blown application
framework.
"""
@@ -35,7 +35,7 @@ copyright holder.
import sys
-from qt import QLabel, QWidget, SIGNAL
+from qt import TQLabel, TQWidget, SIGNAL
from tdecore import KApplication, KIcon, KIconLoader
from tdeui import KMainWindow, KSystemTray