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

Diff of /infoscreen/MainView.cpp

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

revision 541 by torben, Sat Jan 9 12:25:07 2010 UTC revision 542 by torben, Sun Jan 10 09:12:55 2010 UTC
# Line 168  void MainView::switchScreens() Line 168  void MainView::switchScreens()
168                  video->loadUrl(currentItem.url);                  video->loadUrl(currentItem.url);
169              }              }
170    
171                errorInfoScreen("Unknown module: " + currentItem.module );
172    
173          } else {          } else {
174              qDebug() << "no screen";              qDebug() << "no screen";
175                          noInfoScreen();              errorInfoScreen("Der er ingen information at vise");
176          }          }
177          lastScreenSwitch = QTime::currentTime();          lastScreenSwitch = QTime::currentTime();
178    
179      }      }
180  }  }
181    
182  void MainView::noInfoScreen()  void MainView::errorInfoScreen(QString msg)
183  {  {
184          ensureVisible(web);          ensureVisible(web);
185          web->setHtml("<html>\          web->setHtml("<html>\
186                  <body text='#505050' bgcolor='#000000'>\                  <body text='#505050' bgcolor='#000000'>\
187                  <table width='100%' height='100%'><tr><td align='center' valign='middel'><h1>Der er ingen information at vise</h1></td></tr></table>\          <table width='100%' height='100%'><tr><td align='center' valign='middel'><h1>" + msg+ "</h1></td></tr></table>\
188                  </body></html>");                  </body></html>");
189  }  }
190    

Legend:
Removed from v.541  
changed lines
  Added in v.542

  ViewVC Help
Powered by ViewVC 1.1.20