~ubuntu-branches/ubuntu/saucy/dragon/saucy-proposed

« back to all changes in this revision

Viewing changes to src/app/stateChange.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Rohan Garg, Jonathan Riddell
  • Date: 2013-06-21 00:44:11 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20130621004411-6z74dig88azevmrm
Tags: 4:4.10.80-0ubuntu1
[ Rohan Garg ]
* New upstream release

[ Jonathan Riddell ]
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
namespace Dragon {
37
37
 
38
38
void
39
 
MainWindow::engineStateChanged( Phonon::State state, Phonon::State oldstate )
 
39
MainWindow::engineStateChanged( Phonon::State state )
40
40
{
41
41
    bool const isFullScreen = toggleAction("fullscreen")->isChecked();
42
42
    bool const hasMedia = TheStream::hasMedia();
43
 
    QWidget *const toolbar = reinterpret_cast<QWidget*>(toolBar());
44
43
 
45
44
    switch(state)
46
45
    {
129
128
void
130
129
MainWindow::engineMediaChanged(Phonon::MediaSource /*newSource*/)
131
130
{
132
 
#ifdef __GNUC__
133
 
#warning FIXME
134
 
#endif
135
 
//    m_audioView->updateText();
 
131
    m_audioView->update();
136
132
 
137
133
    // update recently played list
138
134
    kDebug() << " update recent files list ";
169
165
{
170
166
    kDebug() << "metaDataChanged";
171
167
    updateTitleBarText();
172
 
#ifdef __GNUC__
173
 
#warning FIXME
174
 
#endif
175
 
//    m_audioView->updateText();
 
168
    m_audioView->update();
176
169
}
177
170
 
178
 
void MainWindow::engineHasVideoChanged(bool hasVideo)
 
171
void MainWindow::engineHasVideoChanged( bool hasVideo )
179
172
{
 
173
  Q_UNUSED(hasVideo);
 
174
 
180
175
  kDebug() << "hasVideo changed";
181
176
  if( TheStream::hasVideo() )
182
177
  {
189
184
    // The video state might have changed *after* a state change (e.g. in Phonon-VLC)
190
185
    // in which case the video related menu actions will not be enabled until
191
186
    // a new state change occurs. By forcing a fake state change we can work around this.
192
 
    engineStateChanged(videoWindow()->state(), videoWindow()->state());
 
187
    engineStateChanged(videoWindow()->state());
193
188
  }
194
189
  else
195
190
  {