summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-08-11 02:22:34 (UTC)
committer llornkcor <llornkcor>2002-08-11 02:22:34 (UTC)
commitc20e4302b915bcba07b468874e9795d37d2eaa03 (patch) (side-by-side diff)
tree3db1dcad48072a4b39499b47d2ca17d6c16e5259
parent534dcf3168c64c4d0ab5b0d04697a5f73ce4594c (diff)
downloadopie-c20e4302b915bcba07b468874e9795d37d2eaa03.zip
opie-c20e4302b915bcba07b468874e9795d37d2eaa03.tar.gz
opie-c20e4302b915bcba07b468874e9795d37d2eaa03.tar.bz2
fix background image on video
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index 419c3ae..a4e6b6e 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -189,17 +189,21 @@ void VideoWidget::resizeEvent( QResizeEvent * ) {
//videoFrame->width();
// songInfo.setGeometry( QRect( 2, 10, w - 4, 20 ) );
slider->setFixedWidth( w - 110 );
slider->setGeometry( QRect( 15, h - 30, w - 90, 20 ) );
slider->setBackgroundOrigin( QWidget::ParentOrigin );
+ slider->setFocusPolicy( QWidget::NoFocus );
+make slider->setBackgroundPixmap( *pixBg );
+
// time.setGeometry( QRect( w - 85, h - 30, 70, 20 ) );
xoff = 0;// ( imgUp->width() ) / 2;
yoff = 180;//(( Vh - imgUp->height() ) / 2) - 10;
QPoint p( xoff, yoff );
+
QPixmap *pixUp = combineVImageWithBackground( *imgUp, *pixBg, p );
QPixmap *pixDn = combineVImageWithBackground( *imgDn, *pixBg, p );
for ( int i = 0; i < 7; i++ ) {
if ( !masks[i]->isNull() ) {
delete buttonPixUp[i];
@@ -337,13 +341,12 @@ void VideoWidget::makeVisible() {
setBackgroundMode( QWidget::NoBackground );
showFullScreen();
resize( qApp->desktop()->size() );
slider->hide();
videoFrame-> setGeometry ( 0, 0, width ( ), height ( ));
} else {
- setBackgroundPixmap( Resource::loadPixmap( backgroundPix ) );
showNormal();
showMaximized();
slider->show();
videoFrame->setGeometry( QRect( 10, 20, 220, 160 ) );
}
}