[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [dragon] src/app: include cleanup
From: Harald Sitter <sitter () kde ! org>
Date: 2012-05-31 22:47:08
Message-ID: 20120531224708.54969A60A9 () git ! kde ! org
[Download RAW message or body]
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 <KConfig>
#include <KDebug>
-#include <KLocale>
-#include <KGlobal>
#include <KToolBar>
-#include <QContextMenuEvent>
-#include <QToolButton>
-#include <QDBusInterface>
-#include <QDBusReply>
-
#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 add \
functions like Stream::hasVideo() etc.
-//TODO make convenience function to get fullscreen state
-
-
namespace Dragon {
-
void
MainWindow::engineStateChanged( Phonon::State state, Phonon::State oldstate )
{
@@ -79,8 +63,6 @@ MainWindow::engineStateChanged( Phonon::State state, Phonon::State \
oldstate ) break;
}
-// using namespace Engine;
-
bool enable = false;
if(state == Phonon::PlayingState || state == Phonon::PausedState)
{
@@ -139,30 +121,6 @@ MainWindow::engineStateChanged( Phonon::State state, \
Phonon::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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic