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

Diff of /infoscreen/mainview.cpp

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

revision 901 by torben, Thu Jun 24 19:06:43 2010 UTC revision 902 by torben, Fri Jun 25 07:17:40 2010 UTC
# Line 68  MainView::MainView(QWidget* parent) Line 68  MainView::MainView(QWidget* parent)
68      layout->setContentsMargins(0,0,0,0);      layout->setContentsMargins(0,0,0,0);
69      setLayout(layout);      setLayout(layout);
70    
71      clockOverlay = new ClockOverlay(this);      if (showClock == true) {
72      clockOverlay->move(10,10);          clockOverlay = new ClockOverlay(this);
73      clockOverlay->resize(150,75);          clockOverlay->move(10,10);
74            clockOverlay->resize(150,75);
75        }
76    
77            
78    
# Line 117  void MainView::loadSettings() Line 119  void MainView::loadSettings()
119          screenManagerOff = settings->value("screenmanager_off").toTime();          screenManagerOff = settings->value("screenmanager_off").toTime();
120      }      }
121    
122        showClock = settings->value("showclock").toBool();
123    
124      xmlInterval = settings->value("xmlinterval", 30).toInt();      xmlInterval = settings->value("xmlinterval", 30).toInt();
125      xmlInterval = (xmlInterval * 60 * 1000); //convert to milliseconds      xmlInterval = (xmlInterval * 60 * 1000); //convert to milliseconds
126    
# Line 168  void MainView::onTimer() Line 172  void MainView::onTimer()
172      if (currentMode == ModeXml || currentMode == ModeLocal) {      if (currentMode == ModeXml || currentMode == ModeLocal) {
173          switchScreens();          switchScreens();
174      }      }
175      clockOverlay->timerTick();      if (showClock == true) {
176            clockOverlay->timerTick();
177        }
178  }  }
179    
180    

Legend:
Removed from v.901  
changed lines
  Added in v.902

  ViewVC Help
Powered by ViewVC 1.1.20