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

Contents of /infoscreen/MainView.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 512 - (show annotations) (download)
Tue Dec 15 13:53:02 2009 UTC (14 years, 5 months ago) by torben
File size: 1015 byte(s)
Now with screenmanager

1 #include "MainView.h"
2 #include <QApplication>
3 #include <QPushButton>
4 #include <QLabel>
5 #include <QVBoxLayout>
6
7 #include <QTimer>
8
9 #include <VideoPlayer> //Phonon
10 #include <MediaSource> //Phonon
11
12 #include "MyWebView.h"
13
14
15 MainView::MainView(QWidget* parent)
16 : QWidget(parent)
17 {
18 this->setWindowState( Qt::WindowFullScreen );
19 qApp->setOverrideCursor( QCursor( Qt::BlankCursor) );
20
21
22 //Phonon::VideoPlayer* video;
23 //video = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
24 //video->load( Phonon::MediaSource("http://todic.dk/ps3cache/Inglourious_Basterds_2009.avi") );
25 //layout->addWidget(video,1);
26 //video->play();
27
28 web = new MyWebView(this);
29
30 QVBoxLayout* layout = new QVBoxLayout();
31 layout->addWidget(web,1);
32
33 layout->addStretch();
34 layout->setContentsMargins(0,0,0,0);
35 setLayout(layout);
36
37 QTimer* timer = new QTimer(this);
38 connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() ));
39 timer->start(1000);
40
41
42 web->start();
43 }
44
45
46 void MainView::onTimer()
47 {
48 screenManager.timerTick();
49 }

  ViewVC Help
Powered by ViewVC 1.1.20