summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-08-15 16:46:01 (UTC)
committer harlekin <harlekin>2002-08-15 16:46:01 (UTC)
commitfc0f625393128d47ef4e2baef4dfcdbe48a18ca7 (patch) (unidiff)
tree7a73760c9c854819b151834343622a3f88f79e89
parent09b410db4f8f0104ada5f76d611b39e49e327670 (diff)
downloadopie-fc0f625393128d47ef4e2baef4dfcdbe48a18ca7.zip
opie-fc0f625393128d47ef4e2baef4dfcdbe48a18ca7.tar.gz
opie-fc0f625393128d47ef4e2baef4dfcdbe48a18ca7.tar.bz2
update
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.cpp2
-rw-r--r--noncore/multimedia/opieplayer2/videowidget.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/videowidget.cpp b/noncore/multimedia/opieplayer2/videowidget.cpp
index 5a23d84..8fe572f 100644
--- a/noncore/multimedia/opieplayer2/videowidget.cpp
+++ b/noncore/multimedia/opieplayer2/videowidget.cpp
@@ -126,33 +126,33 @@ QWidget( parent, name, f ), scaledWidth( 0 ), scaledHeight( 0 ) {
126 slider->setMinValue( 0 ); 126 slider->setMinValue( 0 );
127 slider->setMaxValue( 1 ); 127 slider->setMaxValue( 1 );
128 slider->setBackgroundPixmap( Resource::loadPixmap( backgroundPix ) ); 128 slider->setBackgroundPixmap( Resource::loadPixmap( backgroundPix ) );
129 slider->setFocusPolicy( QWidget::NoFocus ); 129 slider->setFocusPolicy( QWidget::NoFocus );
130 130
131 resizeEvent( NULL ); 131 resizeEvent( NULL );
132 132
133 connect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) ); 133 connect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) );
134 connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); 134 connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) );
135 connect( mediaPlayerState, SIGNAL( lengthChanged(long) ), this, SLOT( setLength(long) ) ); 135 connect( mediaPlayerState, SIGNAL( lengthChanged(long) ), this, SLOT( setLength(long) ) );
136 connect( mediaPlayerState, SIGNAL( viewChanged(char) ), this, SLOT( setView(char) ) ); 136 connect( mediaPlayerState, SIGNAL( viewChanged(char) ), this, SLOT( setView(char) ) );
137 connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) ); 137 connect( mediaPlayerState, SIGNAL( playingToggled(bool) ), this, SLOT( setPlaying(bool) ) );
138 138
139 setLength( mediaPlayerState->length() ); 139 setLength( mediaPlayerState->length() );
140 setPosition( mediaPlayerState->position() ); 140 setPosition( mediaPlayerState->position() );
141 setFullscreen( mediaPlayerState->fullscreen() ); 141 setFullscreen( mediaPlayerState->fullscreen() );
142 setPaused( mediaPlayerState->paused() ); 142// setPaused( mediaPlayerState->paused() );
143 setPlaying( mediaPlayerState->playing() ); 143 setPlaying( mediaPlayerState->playing() );
144} 144}
145 145
146 146
147VideoWidget::~VideoWidget() { 147VideoWidget::~VideoWidget() {
148 148
149 for ( int i = 0; i < 7; i++ ) { 149 for ( int i = 0; i < 7; i++ ) {
150 delete buttonPixUp[i]; 150 delete buttonPixUp[i];
151 delete buttonPixDown[i]; 151 delete buttonPixDown[i];
152 } 152 }
153 153
154 delete pixBg; 154 delete pixBg;
155 delete imgUp; 155 delete imgUp;
156 delete imgDn; 156 delete imgDn;
157 delete imgButtonMask; 157 delete imgButtonMask;
158 for ( int i = 0; i < 7; i++ ) { 158 for ( int i = 0; i < 7; i++ ) {
diff --git a/noncore/multimedia/opieplayer2/videowidget.h b/noncore/multimedia/opieplayer2/videowidget.h
index 710ba9e..b35558b 100644
--- a/noncore/multimedia/opieplayer2/videowidget.h
+++ b/noncore/multimedia/opieplayer2/videowidget.h
@@ -50,33 +50,32 @@ enum VideoButtons {
50 VideoVolDown, 50 VideoVolDown,
51 VideoFullscreen 51 VideoFullscreen
52}; 52};
53 53
54class VideoWidget : public QWidget { 54class VideoWidget : public QWidget {
55 Q_OBJECT 55 Q_OBJECT
56public: 56public:
57 VideoWidget( QWidget* parent=0, const char* name=0, WFlags f=0 ); 57 VideoWidget( QWidget* parent=0, const char* name=0, WFlags f=0 );
58 ~VideoWidget(); 58 ~VideoWidget();
59 59
60 60
61 XineVideoWidget* vidWidget(); 61 XineVideoWidget* vidWidget();
62public slots: 62public slots:
63 void updateSlider( long, long ); 63 void updateSlider( long, long );
64 void sliderPressed( ); 64 void sliderPressed( );
65 void sliderReleased( ); 65 void sliderReleased( );
66 void setPaused( bool b);
67 void setPlaying( bool b); 66 void setPlaying( bool b);
68 void setFullscreen( bool b ); 67 void setFullscreen( bool b );
69 void makeVisible(); 68 void makeVisible();
70 void setPosition( long ); 69 void setPosition( long );
71 void setLength( long ); 70 void setLength( long );
72 void setView( char ); 71 void setView( char );
73 72
74signals: 73signals:
75 void moreClicked(); 74 void moreClicked();
76 void lessClicked(); 75 void lessClicked();
77 void moreReleased(); 76 void moreReleased();
78 void lessReleased(); 77 void lessReleased();
79 void sliderMoved( long ); 78 void sliderMoved( long );
80 void videoResized ( const QSize &s ); 79 void videoResized ( const QSize &s );
81 80
82protected: 81protected: