Public feed #891147

Mine

public text v1 · immutable
Raw Edit
·published 2008-02-04 12:16 UTC
rendered paste body
Index: videoplayer.cpp
===================================================================
--- videoplayer.cpp     (revision 770337)
+++ videoplayer.cpp     (working copy)
@@ -40,8 +40,6 @@
         VideoWidget *voutput;

         MediaSource src;
-
-        void _k_stateChanged(Phonon::State, Phonon::State);
 };

 VideoPlayer::VideoPlayer(Phonon::Category category, QWidget *parent)
@@ -61,8 +59,6 @@
     Phonon::createPath(d->player, d->aoutput);
     Phonon::createPath(d->player, d->voutput);

-    connect(d->player, SIGNAL(stateChanged(Phonon::State, Phonon::State)),
-            SLOT(_k_stateChanged(Phonon::State, Phonon::State)));
     connect(d->player, SIGNAL(finished()), SIGNAL(finished()));
 }

@@ -157,12 +153,6 @@
     return (d->player->state() == PausedState);
 }

-void VideoPlayerPrivate::_k_stateChanged(State ns, State os)
-{
-    if (os == LoadingState && ns == StoppedState)
-        player->play();
-}
-
 } // namespaces

 #include "moc_videoplayer.cpp"
Index: videoplayer.h
===================================================================
--- videoplayer.h       (revision 770337)
+++ videoplayer.h       (working copy)
@@ -182,9 +182,6 @@

     protected:
         VideoPlayerPrivate *const d;
-
-    private:
-        Q_PRIVATE_SLOT(d, void _k_stateChanged(Phonon::State, Phonon::State))
 };

 } //namespace Phonon