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 |
|
|