--- infoscreen/MainView.cpp 2010/06/24 10:00:51 885 +++ infoscreen/mainview.cpp 2010/06/25 07:17:40 902 @@ -1,4 +1,4 @@ -#include "MainView.h" +#include "mainview.h" #include #include #include @@ -68,9 +68,11 @@ layout->setContentsMargins(0,0,0,0); setLayout(layout); - clockOverlay = new ClockOverlay(this); - clockOverlay->move(10,10); - clockOverlay->resize(100,50); + if (showClock == true) { + clockOverlay = new ClockOverlay(this); + clockOverlay->move(10,10); + clockOverlay->resize(150,75); + } @@ -117,6 +119,8 @@ screenManagerOff = settings->value("screenmanager_off").toTime(); } + showClock = settings->value("showclock").toBool(); + xmlInterval = settings->value("xmlinterval", 30).toInt(); xmlInterval = (xmlInterval * 60 * 1000); //convert to milliseconds @@ -168,7 +172,9 @@ if (currentMode == ModeXml || currentMode == ModeLocal) { switchScreens(); } - clockOverlay->timerTick(); + if (showClock == true) { + clockOverlay->timerTick(); + } } @@ -306,11 +312,12 @@ void MainView::errorInfoScreen(QString msg) { - ensureVisible(web); - web->setHtml("\ - \ -

" + msg+ "

\ - "); + ensureVisible(web); + QString html(""); + html.append("

") + .append(msg) + .append("

"); + web->setHtml(html); } void MainView::ensureVisible(QWidget* widget)