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

Diff of /infoscreen/mainview.cpp

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

revision 870 by torben, Mon Jun 21 13:53:17 2010 UTC revision 874 by torben, Tue Jun 22 20:30:17 2010 UTC
# Line 32  MainView::MainView(QWidget* parent) Line 32  MainView::MainView(QWidget* parent)
32    
33      if (currentMode == ModeSimpleWeb){      if (currentMode == ModeSimpleWeb){
34          qDebug() << "Starting plain browser mode";          qDebug() << "Starting plain browser mode";
         web->setVisible(true);  
         web->start(url,screenid);  
35      }      }
36    
37      if (currentMode == ModeLocal ) {      if (currentMode == ModeLocal ) {
# Line 68  MainView::MainView(QWidget* parent) Line 66  MainView::MainView(QWidget* parent)
66      layout->setContentsMargins(0,0,0,0);      layout->setContentsMargins(0,0,0,0);
67      setLayout(layout);      setLayout(layout);
68    
69        if (currentMode == ModeSimpleWeb) {
70      if (currentMode == ModeXml || currentMode == ModeLocal) {          web->setVisible(true);
71          qDebug() << "Starting timer...";          web->start(url,screenid);
         timer = new QTimer(this);  
         connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() ));  
         timer->start(100);  
72      }      }
73    
74    
75        qDebug() << "Starting timer...";
76        timer = new QTimer(this);
77        connect(timer, SIGNAL(timeout() ), this, SLOT(onTimer() ));
78        timer->start(100);
79  }  }
80    
81  void MainView::loadSettings()  void MainView::loadSettings()
# Line 139  void MainView::onTimer() Line 140  void MainView::onTimer()
140          readXml();          readXml();
141      }      }
142    
143      switchScreens();      if (currentMode == ModeXml || currentMode == ModeLocal) {
144            switchScreens();
145        }
146  }  }
147    
148    

Legend:
Removed from v.870  
changed lines
  Added in v.874

  ViewVC Help
Powered by ViewVC 1.1.20