summaryrefslogtreecommitdiffstats
path: root/amarok/src/scripts/templates/python_qt_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/scripts/templates/python_qt_template.py')
-rwxr-xr-xamarok/src/scripts/templates/python_qt_template.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/amarok/src/scripts/templates/python_qt_template.py b/amarok/src/scripts/templates/python_qt_template.py
index 177d728e..51a692ac 100755
--- a/amarok/src/scripts/templates/python_qt_template.py
+++ b/amarok/src/scripts/templates/python_qt_template.py
@@ -105,7 +105,7 @@ class Test( QApplication ):
line = sys.stdin.readline()
if line:
- qApp.postEvent( self, Notification(line) )
+ tqApp.postEvent( self, Notification(line) )
else:
break
@@ -120,22 +120,22 @@ class Test( QApplication ):
string = QString(notification.string)
debug( "Received notification: " + str( string ) )
- if string.contains( "configure" ):
+ if string.tqcontains( "configure" ):
self.configure()
- if string.contains( "engineStateChange: play" ):
+ if string.tqcontains( "engineStateChange: play" ):
self.engineStatePlay()
- if string.contains( "engineStateChange: idle" ):
+ if string.tqcontains( "engineStateChange: idle" ):
self.engineStateIdle()
- if string.contains( "engineStateChange: pause" ):
+ if string.tqcontains( "engineStateChange: pause" ):
self.engineStatePause()
- if string.contains( "engineStateChange: empty" ):
+ if string.tqcontains( "engineStateChange: empty" ):
self.engineStatePause()
- if string.contains( "trackChange" ):
+ if string.tqcontains( "trackChange" ):
self.trackChange()
# Notification callbacks. Implement these functions to react to specific notification