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

Diff of /infoscreen/MyWebView.cpp

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

revision 506 by torben, Fri Dec 11 21:47:49 2009 UTC revision 507 by torben, Fri Dec 11 22:15:18 2009 UTC
# Line 12  MyWebView::MyWebView(QWidget* parent) : Line 12  MyWebView::MyWebView(QWidget* parent) :
12          qApp->setOverrideCursor( QCursor( Qt::BlankCursor) );          qApp->setOverrideCursor( QCursor( Qt::BlankCursor) );
13                                    
14          connect(this, SIGNAL( loadStarted() ), this, SLOT( test() ) );          connect(this, SIGNAL( loadStarted() ), this, SLOT( test() ) );
15    
16            QTimer* timer = new QTimer(this);
17            connect(timer, SIGNAL(timeout()), this, SLOT(onTimer()));
18            timer->start(1000);
19  }  }
20    
21  void MyWebView::show() {  void MyWebView::show() {
# Line 65  void MyWebView::test() { Line 69  void MyWebView::test() {
69          std::cout << "test" << std::endl;          std::cout << "test" << std::endl;
70  }  }
71    
72    
73    void MyWebView::onTimer() {
74            static int count = 0;
75            count++;
76    
77            if (count == 10) {
78                    system("xset dpms force off");
79            }
80            
81            std::cout << "timer" << std::endl;
82    }

Legend:
Removed from v.506  
changed lines
  Added in v.507

  ViewVC Help
Powered by ViewVC 1.1.20