summaryrefslogtreecommitdiffstats
path: root/examples/pykde-sampler/dialogs/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pykde-sampler/dialogs/config.py')
-rw-r--r--examples/pykde-sampler/dialogs/config.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/pykde-sampler/dialogs/config.py b/examples/pykde-sampler/dialogs/config.py
index 503c49a..8700cff 100644
--- a/examples/pykde-sampler/dialogs/config.py
+++ b/examples/pykde-sampler/dialogs/config.py
@@ -1,5 +1,5 @@
-from qt import QFrame, QHBoxLayout, QVBoxLayout, QTimer, SIGNAL, QString
+from qt import TQFrame, TQHBoxLayout, TQVBoxLayout, TQTimer, SIGNAL, TQString
from tdecore import i18n, KConfigSkeleton
from tdeui import KPushButton, KConfigDialog, KTextEdit
@@ -12,7 +12,7 @@ helpText = ("")
class SampleSettings(KConfigSkeleton):
def __init__(self):
KConfigSkeleton.__init__(self)
- self.anyString = QString()
+ self.anyString = TQString()
self.setCurrentGroup("Strings")
self.addItemString("Test", self.anyString, "Default Value")
@@ -21,15 +21,15 @@ class SampleSettings(KConfigSkeleton):
self.addItemBool("Any Bool", False)
-class MainFrame(QFrame):
+class MainFrame(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.button = KPushButton(i18n('Show Config Dialog'), self)
self.help = KTextEdit(helpText, '', self)
- layout = QVBoxLayout(self, 4)
+ layout = TQVBoxLayout(self, 4)
layout.addWidget(self.help)
- buttonlayout = QHBoxLayout(layout, 4)
+ buttonlayout = TQHBoxLayout(layout, 4)
buttonlayout.addWidget(self.button)
buttonlayout.addStretch(1)
layout.addStretch(1)
@@ -46,14 +46,14 @@ class MainFrame(QFrame):
dlg.exec_loop()
-class StringsSettings(QFrame):
+class StringsSettings(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.text = KTextEdit('A String', '', self)
-class BoolSettings(QFrame):
+class BoolSettings(TQFrame):
def __init__(self, parent=None):
- QFrame.__init__(self, parent)
+ TQFrame.__init__(self, parent)
self.text = KTextEdit('A Bool', '', self)