Git commit d7521df9d676ca1c998f847e048c2bd5e68491ff by Harald Sitter. Committed on 01/06/2012 at 00:47. Pushed by sitter into branch 'master'. include cleanup M +0 -42 src/app/stateChange.cpp http://commits.kde.org/dragon/d7521df9d676ca1c998f847e048c2bd5e68491ff diff --git a/src/app/stateChange.cpp b/src/app/stateChange.cpp index df796ad..3b16cbc 100644 --- a/src/app/stateChange.cpp +++ b/src/app/stateChange.cpp @@ -24,32 +24,16 @@ = #include #include -#include -#include #include = -#include -#include -#include -#include - #include "actions.h" -#include "adjustSizeButton.h" #include "theStream.h" #include "videoWindow.h" = - -//TODO do in Sconstruct #define QT_FATAL_ASSERT = - -//TODO make the XineEngine into xine::Stream and then make singleton and a= dd functions like Stream::hasVideo() etc. -//TODO make convenience function to get fullscreen state - - namespace Dragon { = - void MainWindow::engineStateChanged( Phonon::State state, Phonon::State oldstat= e ) { @@ -79,8 +63,6 @@ MainWindow::engineStateChanged( Phonon::State state, Phon= on::State oldstate ) break; } = -// using namespace Engine; - bool enable =3D false; if(state =3D=3D Phonon::PlayingState || state =3D=3D Phonon::PausedSta= te) { @@ -139,30 +121,6 @@ MainWindow::engineStateChanged( Phonon::State state, P= honon::State oldstate ) } action("toggle_dvd_menu")->setEnabled( false ); } - if( isFullScreen && !toolbar->testAttribute( Qt::WA_UnderMouse ) ) - {/* - switch( state ) { - case Engine::TrackEnded: - toolbar->show(); - - if( videoWindow()->isActiveWindow() ) { - //FIXME dual-screen this seems to still show - QContextMenuEvent e( QContextMenuEvent::Other, QPoint() ); - QApplication::sendEvent( videoWindow(), &e ); - } - break; - case Engine::Empty: - case Engine::Paused: - case Engine::Uninitialised: - toolBar()->show(); - break; - case Phonon::PlayingState: - toolBar()->hide(); - break; - case Engine::Loaded: - break; - }*/ - } }//engineStateChanged = =20