summaryrefslogtreecommitdiffstats
path: root/examples/pykde-sampler/sampler.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pykde-sampler/sampler.py')
-rwxr-xr-xexamples/pykde-sampler/sampler.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/pykde-sampler/sampler.py b/examples/pykde-sampler/sampler.py
index 4625519..83a4979 100755
--- a/examples/pykde-sampler/sampler.py
+++ b/examples/pykde-sampler/sampler.py
@@ -10,9 +10,9 @@ import inspect
import os
import sys
-from qt import SIGNAL, SLOT, PYSIGNAL, Qt
-from qt import QVBoxLayout, QLabel, QPixmap, QSplitter, QFrame, QDialog
-from qt import QSizePolicy, QHBoxLayout, QSpacerItem, QPushButton
+from qt import SIGNAL, SLOT, PYSIGNAL, TQt
+from qt import TQVBoxLayout, TQLabel, TQPixmap, TQSplitter, TQFrame, TQDialog
+from qt import TQSizePolicy, TQHBoxLayout, TQSpacerItem, TQPushButton
from tdecore import i18n, KAboutData, KApplication, KCmdLineArgs, KGlobal
from tdecore import KGlobalSettings, KWin, KWinModule, KURL, KIcon
@@ -35,8 +35,8 @@ except (NameError, ):
__file__ = sys.argv[0]
-sigDoubleClicked = SIGNAL('doubleClicked(QListViewItem *)')
-sigViewItemSelected = SIGNAL('selectionChanged(QListViewItem *)')
+sigDoubleClicked = SIGNAL('doubleClicked(TQListViewItem *)')
+sigViewItemSelected = SIGNAL('selectionChanged(TQListViewItem *)')
sigSampleSelected = PYSIGNAL('sample selected')
blank = KURL('about:blank')
@@ -83,15 +83,15 @@ def buildPart(parent, query, constraint, writable=False):
-class CommonFrame(QFrame):
+class CommonFrame(TQFrame):
""" provides a modicum of reuse
"""
def __init__(self, parent):
- QFrame.__init__(self, parent)
- layout = QVBoxLayout(self)
+ TQFrame.__init__(self, parent)
+ layout = TQVBoxLayout(self)
layout.setAutoAdd(True)
- layout.setAlignment(Qt.AlignCenter | Qt.AlignVCenter)
+ layout.setAlignment(TQt.AlignCenter | TQt.AlignVCenter)
class SamplerFrame(CommonFrame):
@@ -243,9 +243,9 @@ class SamplerMainWindow(KMainWindow):
"""
def __init__(self, *args):
KMainWindow.__init__(self, *args)
- self.hSplitter = hSplit = QSplitter(Qt.Horizontal, self)
+ self.hSplitter = hSplit = TQSplitter(TQt.Horizontal, self)
self.samplesList = samplesList = SamplerListView(hSplit)
- self.vSplitter = vSplit = QSplitter(Qt.Vertical, hSplit)
+ self.vSplitter = vSplit = TQSplitter(TQt.Vertical, hSplit)
self.setCentralWidget(hSplit)
self.setIcon(getIcon('kmail'))
@@ -358,7 +358,7 @@ class SamplerMainWindow(KMainWindow):
"""
ret = KKeyDialog.configure(self.actionCollection(), self)
print ret
- if ret == QDialog.Accepted:
+ if ret == TQDialog.Accepted:
actions = self.actionCollection()
actions.writeShortcutSettings(None, appConfig())
@@ -398,7 +398,7 @@ class SamplerMainWindow(KMainWindow):
"""
target = self.sampleFrame
- label = QLabel(target)
+ label = TQLabel(target)
label.setPixmap(pixmap)
target.setWidget(label)
@@ -412,7 +412,7 @@ if __name__ == '__main__':
KCmdLineArgs.init(sys.argv, aboutdata)
app = KApplication()
- splashpix = QPixmap(os.path.join(lib.samplerpath, 'aboutkde.png'))
+ splashpix = TQPixmap(os.path.join(lib.samplerpath, 'aboutkde.png'))
splash = KSplashScreen(splashpix)
splash.resize(splashpix.size())
splash.show()