aboutsummaryrefslogtreecommitdiffstats
path: root/examples/multimedia
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-10-13 16:35:40 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-10-13 16:35:52 +0200
commitbd0c77f81fcc66e2cd57d78123bd1ea5ece3cb28 (patch)
tree757aebd9db2e1198f3c1d5bacbddfb25a45c8a3c /examples/multimedia
parent29bf933c9244883b570a9d53e900415fdcf7d437 (diff)
parentb43152d1708b51f7d5c62c7a249c776354f745f5 (diff)
Merge remote-tracking branch 'origin/5.9' into devHEADdev
Diffstat (limited to 'examples/multimedia')
-rw-r--r--examples/multimedia/player.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/multimedia/player.py b/examples/multimedia/player.py
index a519332..76445cd 100644
--- a/examples/multimedia/player.py
+++ b/examples/multimedia/player.py
@@ -73,7 +73,7 @@ class MainWindow(QMainWindow):
playMenu = self.menuBar().addMenu("&Play")
playIcon = self.style().standardIcon(QStyle.SP_MediaPlay)
self.playAction = toolBar.addAction(playIcon, "Play")
- self.playAction.triggered.connect(self.player, SLOT("play()"))
+ self.playAction.triggered.connect(self.player.play)
playMenu.addAction(self.playAction)
previousIcon = self.style().standardIcon(QStyle.SP_MediaSkipBackward)
@@ -83,17 +83,17 @@ class MainWindow(QMainWindow):
pauseIcon = self.style().standardIcon(QStyle.SP_MediaPause)
self.pauseAction = toolBar.addAction(pauseIcon, "Pause")
- self.pauseAction.triggered.connect(self.player, SLOT("pause()"))
+ self.pauseAction.triggered.connect(self.player.pause)
playMenu.addAction(self.pauseAction)
nextIcon = self.style().standardIcon(QStyle.SP_MediaSkipForward)
self.nextAction = toolBar.addAction(nextIcon, "Next")
- self.nextAction.triggered.connect(self.playlist, SLOT("next()"))
+ self.nextAction.triggered.connect(self.playlist.next)
playMenu.addAction(self.nextAction)
stopIcon = self.style().standardIcon(QStyle.SP_MediaStop)
self.stopAction = toolBar.addAction(stopIcon, "Stop")
- self.stopAction.triggered.connect(self.player, SLOT("stop()"))
+ self.stopAction.triggered.connect(self.player.stop)
playMenu.addAction(self.stopAction)
self.volumeSlider = QSlider()
@@ -105,7 +105,7 @@ class MainWindow(QMainWindow):
self.volumeSlider.setTickInterval(10)
self.volumeSlider.setTickPosition(QSlider.TicksBelow)
self.volumeSlider.setToolTip("Volume")
- self.volumeSlider.valueChanged.connect(self.player, SLOT("setVolume(int)"))
+ self.volumeSlider.valueChanged.connect(self.player.setVolume)
toolBar.addWidget(self.volumeSlider)
aboutMenu = self.menuBar().addMenu("&About")