From 7a04855af4e042152a47e90192dc4c2c20858e8c Mon Sep 17 00:00:00 2001 From: harlekin Date: Tue, 24 Sep 2002 20:26:17 +0000 Subject: adapted to the new api --- (limited to 'noncore/multimedia/opieplayer2/videowidget.cpp') diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp index b0ec673..f5f5c37 100644 --- a/noncore/multimedia/opieplayer2/videowidget.cpp +++ b/noncore/multimedia/opieplayer2/videowidget.cpp @@ -384,7 +384,7 @@ void VideoWidget::makeVisible() { resize( qApp->desktop()->size() ); slider->hide(); videoFrame-> setGeometry ( 0, 0, width ( ), height ( )); - qApp->processEvents(); +// qApp->processEvents(); } else { showNormal(); showMaximized(); @@ -398,9 +398,8 @@ void VideoWidget::makeVisible() { connect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) ); connect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) ); } - QWidget *d = QApplication::desktop(); - int w=d->width(); + int w=d->width(); int h=d->height(); if(w>h) { @@ -409,7 +408,7 @@ void VideoWidget::makeVisible() { } else videoFrame->setGeometry( QRect( 0, 30, 240, 170 ) ); - qApp->processEvents(); +// qApp->processEvents(); } } -- cgit v0.9.0.2