do not propagate the mouse events to the parent widget

svn path=/trunk/KDE/kdegraphics/okular/; revision=851962
This commit is contained in:
Pino Toscano 2008-08-25 02:04:27 +00:00
parent 6993fda364
commit a65075c116

View file

@ -91,6 +91,10 @@ void VideoWidget::Private::finished()
VideoWidget::VideoWidget( Okular::MovieAnnotation *movieann, Okular::Document *document, QWidget *parent )
: QWidget( parent ), d( new Private( movieann, document, this ) )
{
// do not propagate the mouse events to the parent widget;
// they should be tied to this widget, not spread around...
setAttribute( Qt::WA_NoMousePropagation );
QVBoxLayout *mainlay = new QVBoxLayout( this );
mainlay->setMargin( 0 );