summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/pykde-sampler/qt_widgets/CONTRIB2
-rw-r--r--examples/qxembedexample.py20
-rw-r--r--examples/qxembedexample.ui10
-rw-r--r--examples/uimodules/uimisc.py2
-rw-r--r--examples/uiqxembed.py14
-rw-r--r--examples/uisampler.py2
6 files changed, 25 insertions, 25 deletions
diff --git a/examples/pykde-sampler/qt_widgets/CONTRIB b/examples/pykde-sampler/qt_widgets/CONTRIB
index e9bfd3d..3def876 100644
--- a/examples/pykde-sampler/qt_widgets/CONTRIB
+++ b/examples/pykde-sampler/qt_widgets/CONTRIB
@@ -340,7 +340,7 @@ tdeui,KXMLGUIBuilder,,,
tdeui,KXMLGUIClient,,,
tdeui,KXMLGUIFactory,,,
tdeui,KXYSelector,,,
-tdeui,TQXEmbed,,,
+tdeui,QXEmbed,,,
tdeui,testKActionList,,,
kfile,KApplicationPropsPlugin,,,
kfile,KBindingPropsPlugin,,,
diff --git a/examples/qxembedexample.py b/examples/qxembedexample.py
index ab33196..ca37d08 100644
--- a/examples/qxembedexample.py
+++ b/examples/qxembedexample.py
@@ -11,15 +11,15 @@
from qt import *
-class TQXEmbedExample(TQWidget):
+class QXEmbedExample(TQWidget):
def __init__(self,parent = None,name = None,fl = 0):
TQWidget.__init__(self,parent,name,fl)
if not name:
- self.setName("TQXEmbedExample")
+ self.setName("QXEmbedExample")
- TQXEmbedExampleLayout = TQVBoxLayout(self,11,6,"TQXEmbedExampleLayout")
+ QXEmbedExampleLayout = TQVBoxLayout(self,11,6,"QXEmbedExampleLayout")
layout2 = TQHBoxLayout(None,0,6,"layout2")
@@ -32,13 +32,13 @@ class TQXEmbedExample(TQWidget):
layout2.addWidget(self.launchButton)
spacer1 = TQSpacerItem(209,31,TQSizePolicy.Expanding,TQSizePolicy.Minimum)
layout2.addItem(spacer1)
- TQXEmbedExampleLayout.addLayout(layout2)
+ QXEmbedExampleLayout.addLayout(layout2)
self.line1 = TQFrame(self,"line1")
self.line1.setFrameShape(TQFrame.HLine)
self.line1.setFrameShadow(TQFrame.Sunken)
self.line1.setFrameShape(TQFrame.HLine)
- TQXEmbedExampleLayout.addWidget(self.line1)
+ QXEmbedExampleLayout.addWidget(self.line1)
self.mainTabs = TQTabWidget(self,"mainTabs")
@@ -48,7 +48,7 @@ class TQXEmbedExample(TQWidget):
self.textLabel1 = TQLabel(self.tab,"textLabel1")
tabLayout.addWidget(self.textLabel1)
self.mainTabs.insertTab(self.tab,TQString(""))
- TQXEmbedExampleLayout.addWidget(self.mainTabs)
+ QXEmbedExampleLayout.addWidget(self.mainTabs)
self.languageChange()
@@ -59,13 +59,13 @@ class TQXEmbedExample(TQWidget):
def languageChange(self):
- self.setCaption(self.__tr("TQXEmbed Example"))
+ self.setCaption(self.__tr("QXEmbed Example"))
self.appNameCombo.clear()
self.appNameCombo.insertItem(self.__tr("kcalc"))
self.appNameCombo.insertItem(self.__tr("konqueror"))
self.appNameCombo.insertItem(self.__tr("kedit"))
self.launchButton.setText(self.__tr("Launch and Embed"))
- self.textLabel1.setText(self.__tr("<b>TQXEmbed Example</b>\n"
+ self.textLabel1.setText(self.__tr("<b>QXEmbed Example</b>\n"
"<br><br>\n"
"\n"
"Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab."))
@@ -73,7 +73,7 @@ class TQXEmbedExample(TQWidget):
def launchApp(self):
- print "TQXEmbedExample.launchApp(): Not implemented yet"
+ print "QXEmbedExample.launchApp(): Not implemented yet"
def __tr(self,s,c = None):
- return qApp.translate("TQXEmbedExample",s,c)
+ return qApp.translate("QXEmbedExample",s,c)
diff --git a/examples/qxembedexample.ui b/examples/qxembedexample.ui
index 2613c51..e0048db 100644
--- a/examples/qxembedexample.ui
+++ b/examples/qxembedexample.ui
@@ -1,8 +1,8 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
-<class>TQXEmbedExample</class>
+<class>QXEmbedExample</class>
<widget class="TQWidget">
<property name="name">
- <cstring>TQXEmbedExample</cstring>
+ <cstring>QXEmbedExample</cstring>
</property>
<property name="geometry">
<rect>
@@ -13,7 +13,7 @@
</rect>
</property>
<property name="caption">
- <string>TQXEmbed Example</string>
+ <string>QXEmbed Example</string>
</property>
<vbox>
<property name="name">
@@ -124,7 +124,7 @@
<cstring>textLabel1</cstring>
</property>
<property name="text">
- <string>&lt;b&gt;TQXEmbed Example&lt;/b&gt;
+ <string>&lt;b&gt;QXEmbed Example&lt;/b&gt;
&lt;br&gt;&lt;br&gt;
Select one of the app names from the combo list, then launch it with the button. Two seconds after launch, the window for the new process will get added as a new tab.</string>
@@ -139,7 +139,7 @@ Select one of the app names from the combo list, then launch it with the button.
<connection>
<sender>launchButton</sender>
<signal>clicked()</signal>
- <receiver>TQXEmbedExample</receiver>
+ <receiver>QXEmbedExample</receiver>
<slot>launchApp()</slot>
</connection>
</connections>
diff --git a/examples/uimodules/uimisc.py b/examples/uimodules/uimisc.py
index f296aac..436768a 100644
--- a/examples/uimodules/uimisc.py
+++ b/examples/uimodules/uimisc.py
@@ -230,7 +230,7 @@ def miscKSystemTray (parent):
def miscKThemeBase (parent):
parent.currentPageObj = PageNotImpl (parent)
-def miscTQXEmbed (parent):
+def miscQXEmbed (parent):
parent.currentPageObj = PageNotImpl (parent)
if __name__ == "__main__":
diff --git a/examples/uiqxembed.py b/examples/uiqxembed.py
index 0275e0c..0f5f816 100644
--- a/examples/uiqxembed.py
+++ b/examples/uiqxembed.py
@@ -8,7 +8,7 @@ from qt import TQIconSet, TQProcess, TQTimer, SIGNAL, SLOT
from tdecore import KAboutData, KApplication, KCmdLineArgs, KGlobal, KIcon
from tdecore import KWin, KWinModule
-from tdeui import KComboBox, KMainWindow, KPushButton, TQXEmbed
+from tdeui import KComboBox, KMainWindow, KPushButton, QXEmbed
## add the missing items to the pyuic-generated module
@@ -16,7 +16,7 @@ import qxembedexample
qxembedexample.KComboBox = KComboBox
qxembedexample.KPushButton = KPushButton
-from qxembedexample import TQXEmbedExample
+from qxembedexample import QXEmbedExample
def getIcon(name, group=KIcon.NoGroup, size=KIcon.SizeSmall):
@@ -42,12 +42,12 @@ def getWindow(pid):
return info
-class ExampleForm(TQXEmbedExample):
+class ExampleForm(QXEmbedExample):
""" wraps the pyuic generated form class with our behavior
"""
def __init__(self, parent):
- TQXEmbedExample.__init__(self, parent)
+ QXEmbedExample.__init__(self, parent)
combo = self.appNameCombo
items = [(idx, '%s' % combo.text(idx)) for idx in range(combo.count())]
for idx, name in items:
@@ -80,7 +80,7 @@ class ExampleForm(TQXEmbedExample):
winobj = getWindow(pid)
if winobj:
tabs = self.mainTabs
- embedded = TQXEmbed(self)
+ embedded = QXEmbed(self)
caption = '%s (%s)' % (winobj.name, pid, )
tabs.insertTab(embedded, caption)
embedded.embed(winobj.win)
@@ -101,8 +101,8 @@ class ExampleMain(KMainWindow):
if __name__ == '__main__':
- aname = 'PyKDE TQXEmbed Sample'
- desc = 'A Simple PyKDE TQXEmbed Sample'
+ aname = 'PyKDE QXEmbed Sample'
+ desc = 'A Simple PyKDE QXEmbed Sample'
ver = '1.0'
lic = KAboutData.License_GPL
author = 'Troy Melhase'
diff --git a/examples/uisampler.py b/examples/uisampler.py
index 211947b..e0912e2 100644
--- a/examples/uisampler.py
+++ b/examples/uisampler.py
@@ -117,7 +117,7 @@ listItems = {"Dialogs":
"KSharedPixmap": [],\
"KSystemTray": [],\
"KThemeBase": ["KThemeCache", "KThemePixmap", "KThemeStyle"],\
- "TQXEmbed": []}}
+ "QXEmbed": []}}
prefix = {"Dialogs": "dlg", "Widgets": "wid", "XML": "xml", "Menus/Toolbars": "menu", "Other": "misc"}