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->setWindowState( Qt::WindowFullScreen ); |
this->setWindowState( Qt::WindowFullScreen ); |
20 |
qApp->setOverrideCursor( QCursor( Qt::BlankCursor) ); |
// qApp->setOverrideCursor( QCursor( Qt::BlankCursor) ); |
21 |
|
|
22 |
|
|
23 |
//Phonon::VideoPlayer* video; |
//Phonon::VideoPlayer* video; |
26 |
//layout->addWidget(video,1); |
//layout->addWidget(video,1); |
27 |
//video->play(); |
//video->play(); |
28 |
|
|
29 |
web = new MyWebView(this); |
render = new ClientSideRender(this); |
30 |
|
web = new MyWebView(this); |
31 |
|
web->setVisible( false ); |
32 |
|
|
33 |
QVBoxLayout* layout = new QVBoxLayout(); |
QVBoxLayout* layout = new QVBoxLayout(); |
34 |
layout->addWidget(web,1); |
layout->addWidget(web,1); |
35 |
|
layout->addWidget(render,1); |
36 |
layout->addStretch(); |
layout->addStretch(); |
37 |
layout->setContentsMargins(0,0,0,0); |
layout->setContentsMargins(0,0,0,0); |
38 |
setLayout(layout); |
setLayout(layout); |
39 |
|
|
40 |
QTimer* timer = new QTimer(this); |
QTimer* timer = new QTimer(this); |
41 |
connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() )); |
connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() )); |
42 |
timer->start(1000); |
timer->start(1000); |
43 |
|
|
44 |
|
|
45 |
web->start(); |
web->start(); |
46 |
} |
} |
47 |
|
|
48 |
|
|