author | harlekin <harlekin> | 2002-04-20 21:39:03 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-04-20 21:39:03 (UTC) |
commit | e657b8203c7b649fd3df96afbe7f8b1d24b5b8ed (patch) (unidiff) | |
tree | 327c776a79f6444f38dc1bbddf1e530dabce8972 /core/multimedia/opieplayer/videowidget.cpp | |
parent | 22dc731f503383e95c49d88ca4e9c32c7ed4fb3a (diff) | |
download | opie-e657b8203c7b649fd3df96afbe7f8b1d24b5b8ed.zip opie-e657b8203c7b649fd3df96afbe7f8b1d24b5b8ed.tar.gz opie-e657b8203c7b649fd3df96afbe7f8b1d24b5b8ed.tar.bz2 |
updated paths for icons
Diffstat (limited to 'core/multimedia/opieplayer/videowidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/videowidget.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/core/multimedia/opieplayer/videowidget.cpp b/core/multimedia/opieplayer/videowidget.cpp index 23b36e5..70b4a95 100644 --- a/core/multimedia/opieplayer/videowidget.cpp +++ b/core/multimedia/opieplayer/videowidget.cpp | |||
@@ -69,6 +69,6 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : | |||
69 | setCaption( tr("OpiePlayer") ); | 69 | setCaption( tr("OpiePlayer") ); |
70 | setBackgroundPixmap( Resource::loadPixmap( "mpegplayer/metalFinish" ) ); | 70 | setBackgroundPixmap( Resource::loadPixmap( "opieplayer/metalFinish" ) ); |
71 | pixmaps[0] = new QPixmap( Resource::loadPixmap( "mpegplayer/mediaButton0a" ) ); | 71 | pixmaps[0] = new QPixmap( Resource::loadPixmap( "opieplayer/mediaButton0a" ) ); |
72 | pixmaps[1] = new QPixmap( Resource::loadPixmap( "mpegplayer/mediaButton0b" ) ); | 72 | pixmaps[1] = new QPixmap( Resource::loadPixmap( "opieplayer/mediaButton0b" ) ); |
73 | pixmaps[2] = new QPixmap( Resource::loadPixmap( "mpegplayer/mediaControls0" ) ); | 73 | pixmaps[2] = new QPixmap( Resource::loadPixmap( "opieplayer/mediaControls0" ) ); |
74 | currentFrame = new QImage( 220 + 2, 160, (QPixmap::defaultDepth() == 16) ? 16 : 32 ); | 74 | currentFrame = new QImage( 220 + 2, 160, (QPixmap::defaultDepth() == 16) ? 16 : 32 ); |
@@ -78,3 +78,3 @@ VideoWidget::VideoWidget(QWidget* parent, const char* name, WFlags f) : | |||
78 | slider->setMaxValue( 1 ); | 78 | slider->setMaxValue( 1 ); |
79 | slider->setBackgroundPixmap( Resource::loadPixmap( "mpegplayer/metalFinish" ) ); | 79 | slider->setBackgroundPixmap( Resource::loadPixmap( "opieplayer/metalFinish" ) ); |
80 | slider->setFocusPolicy( QWidget::NoFocus ); | 80 | slider->setFocusPolicy( QWidget::NoFocus ); |
@@ -203,3 +203,3 @@ void VideoWidget::mouseMoveEvent( QMouseEvent *event ) { | |||
203 | videoButtons[i].isHeld = FALSE; | 203 | videoButtons[i].isHeld = FALSE; |
204 | if ( !videoButtons[i].isToggle ) | 204 | if ( !videoButtons[i].isToggle ) |
205 | setToggleButton( i, FALSE ); | 205 | setToggleButton( i, FALSE ); |
@@ -216,3 +216,3 @@ void VideoWidget::mouseMoveEvent( QMouseEvent *event ) { | |||
216 | } | 216 | } |
217 | 217 | ||
218 | } | 218 | } |
@@ -230,3 +230,3 @@ void VideoWidget::mouseReleaseEvent( QMouseEvent *event ) { | |||
230 | makeVisible(); | 230 | makeVisible(); |
231 | 231 | ||
232 | mouseMoveEvent( event ); | 232 | mouseMoveEvent( event ); |
@@ -243,3 +243,3 @@ void VideoWidget::makeVisible() { | |||
243 | } else { | 243 | } else { |
244 | setBackgroundPixmap( Resource::loadPixmap( "mpegplayer/metalFinish" ) ); | 244 | setBackgroundPixmap( Resource::loadPixmap( "opieplayer/metalFinish" ) ); |
245 | showNormal(); | 245 | showNormal(); |
@@ -255,3 +255,3 @@ void VideoWidget::paintEvent( QPaintEvent * ) { | |||
255 | if ( mediaPlayerState->fullscreen() ) { | 255 | if ( mediaPlayerState->fullscreen() ) { |
256 | // Clear the background | 256 | // Clear the background |
257 | p.setBrush( QBrush( Qt::black ) ); | 257 | p.setBrush( QBrush( Qt::black ) ); |
@@ -290,3 +290,3 @@ bool VideoWidget::playVideo() { | |||
290 | 290 | ||
291 | int stream = 0; | 291 | int stream = 0; |
292 | 292 | ||
@@ -312,3 +312,3 @@ bool VideoWidget::playVideo() { | |||
312 | // maintain aspect ratio | 312 | // maintain aspect ratio |
313 | if ( w * sh > sw * h ) | 313 | if ( w * sh > sw * h ) |
314 | w = sw * h / sh; | 314 | w = sw * h / sh; |
@@ -318,3 +318,3 @@ bool VideoWidget::playVideo() { | |||
318 | w = sw; | 318 | w = sw; |
319 | h = sh; | 319 | h = sh; |
320 | } | 320 | } |
@@ -323,3 +323,3 @@ bool VideoWidget::playVideo() { | |||
323 | QPoint roff = qt_screen->mapToDevice( p.offset(), QSize( qt_screen->width(), qt_screen->height() ) ); | 323 | QPoint roff = qt_screen->mapToDevice( p.offset(), QSize( qt_screen->width(), qt_screen->height() ) ); |
324 | 324 | ||
325 | int ox = roff.x() - height() + 2 + (height() - w) / 2; | 325 | int ox = roff.x() - height() + 2 + (height() - w) / 2; |
@@ -348,3 +348,3 @@ bool VideoWidget::playVideo() { | |||
348 | // maintain aspect ratio | 348 | // maintain aspect ratio |
349 | if ( w * sh > sw * h ) | 349 | if ( w * sh > sw * h ) |
350 | w = sw * h / sh; | 350 | w = sw * h / sh; |
@@ -354,3 +354,3 @@ bool VideoWidget::playVideo() { | |||
354 | w = sw; | 354 | w = sw; |
355 | h = sh; | 355 | h = sh; |
356 | } | 356 | } |
@@ -396,3 +396,3 @@ bool VideoWidget::playVideo() { | |||
396 | // maintain aspect ratio | 396 | // maintain aspect ratio |
397 | if ( w * sh > sw * h ) | 397 | if ( w * sh > sw * h ) |
398 | w = sw * h / sh; | 398 | w = sw * h / sh; |
@@ -469,3 +469,3 @@ void VideoWidget::keyReleaseEvent( QKeyEvent *e) | |||
469 | break; | 469 | break; |
470 | 470 | ||
471 | }; | 471 | }; |