Common subdirectories: kaboodle/.deps and kaboodle-patched/.deps
Common subdirectories: kaboodle/CVS and kaboodle-patched/CVS
Common subdirectories: kaboodle/actions and kaboodle-patched/actions
Common subdirectories: kaboodle/pics and kaboodle-patched/pics
diff -u kaboodle/view.cpp kaboodle-patched/view.cpp
--- kaboodle/view.cpp	2003-10-11 14:36:21.000000000 +0200
+++ kaboodle-patched/view.cpp	2003-10-11 15:05:53.000000000 +0200
@@ -72,6 +72,7 @@
 	video = new KVideoWidget(player, box);
 	setVideoWidget(video);
 	connect(video, SIGNAL(adaptSize(int, int)), this, SLOT(calculateSize(int, int)));
+	video->installEventFilter(this);
 
 	QWidget *sliderBox = new QWidget(box);
 	sliderBox->setFocusPolicy(QWidget::ClickFocus);
@@ -301,4 +302,23 @@
 
 }
 
+bool Kaboodle::View::eventFilter( QObject *obj, QEvent *ev)
+{
+	if(obj == video)
+	{
+		if( ev->type() == QEvent::MouseButtonPress )
+		{
+			if((KMediaPlayer::Player::State)player->state() == KMediaPlayer::Player::Pause )
+			{
+			player->play();
+			}
+			else player->pause();
+			
+			return TRUE;
+		}
+	}
+    return QWidget::eventFilter(obj, ev);
+}
+
+
 #include "view.moc"
diff -u kaboodle/view.h kaboodle-patched/view.h
--- kaboodle/view.h	2003-10-11 14:36:38.000000000 +0200
+++ kaboodle-patched/view.h	2003-10-11 15:06:48.000000000 +0200
@@ -87,6 +87,7 @@
 	Player *player;
 
 	void updateTicks(void);
+	bool eventFilter( QObject *obj, QEvent *ev);
 
 	L33tSlider *slider;
 	QLabel *elapsedLabel;
