/[projects]/infoscreen/mainview.cpp
ViewVC logotype

Diff of /infoscreen/mainview.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 512 by torben, Tue Dec 15 13:53:02 2009 UTC revision 516 by torben, Tue Dec 15 21:06:14 2009 UTC
# Line 6  Line 6 
6    
7  #include <QTimer>  #include <QTimer>
8    
9  #include <VideoPlayer> //Phonon  //#include <VideoPlayer> //Phonon
10  #include <MediaSource> //Phonon  //#include <MediaSource> //Phonon
11    
12  #include "MyWebView.h"  #include "MyWebView.h"
13    #include "clientsiderender.h"
14    
15    
16  MainView::MainView(QWidget* parent)  MainView::MainView(QWidget* parent)
17   : QWidget(parent)   : QWidget(parent)
18  {  {
19            this->resize(400,400);
20          this->setWindowState( Qt::WindowFullScreen );          this->setWindowState( Qt::WindowFullScreen );
21          qApp->setOverrideCursor( QCursor( Qt::BlankCursor) );  
22    //      qApp->setOverrideCursor( QCursor( Qt::BlankCursor) );
23    
24                    
25          //Phonon::VideoPlayer* video;          //Phonon::VideoPlayer* video;
# Line 25  MainView::MainView(QWidget* parent) Line 28  MainView::MainView(QWidget* parent)
28          //layout->addWidget(video,1);          //layout->addWidget(video,1);
29          //video->play();          //video->play();
30    
31          web = new MyWebView(this);          render = new ClientSideRender(this);
32            web = new MyWebView(this);
33            web->setVisible( false );
34    
35          QVBoxLayout* layout = new QVBoxLayout();          QVBoxLayout* layout = new QVBoxLayout();
36          layout->addWidget(web,1);          layout->addWidget(web,1);
37                    layout->addWidget(render,1);
38          layout->addStretch();          layout->addStretch();
39          layout->setContentsMargins(0,0,0,0);          layout->setContentsMargins(0,0,0,0);
40          setLayout(layout);          setLayout(layout);
41    
42          QTimer* timer = new QTimer(this);          QTimer* timer = new QTimer(this);
43          connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() ));          connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() ));
44          timer->start(1000);          timer->start(1000);
45                    
46                    
47          web->start();        // web->start();
48  }  }
49    
50    

Legend:
Removed from v.512  
changed lines
  Added in v.516

  ViewVC Help
Powered by ViewVC 1.1.20