1 |
#include "MainView.h" |
#include "mainview.h" |
2 |
#include <QApplication> |
#include <QApplication> |
3 |
#include <QPushButton> |
#include <QPushButton> |
4 |
#include <QLabel> |
#include <QLabel> |
70 |
|
|
71 |
clockOverlay = new ClockOverlay(this); |
clockOverlay = new ClockOverlay(this); |
72 |
clockOverlay->move(10,10); |
clockOverlay->move(10,10); |
73 |
clockOverlay->resize(100,50); |
clockOverlay->resize(150,75); |
74 |
|
|
75 |
|
|
76 |
|
|
306 |
|
|
307 |
void MainView::errorInfoScreen(QString msg) |
void MainView::errorInfoScreen(QString msg) |
308 |
{ |
{ |
309 |
ensureVisible(web); |
ensureVisible(web); |
310 |
web->setHtml("<html>\ |
QString html("<html><body text='#505050' bgcolor='#000000'>"); |
311 |
<body text='#505050' bgcolor='#000000'>\ |
html.append("<table width='100%' height='100%'><tr><td align='center' valign='middel'><h1>") |
312 |
<table width='100%' height='100%'><tr><td align='center' valign='middel'><h1>" + msg+ "</h1></td></tr></table>\ |
.append(msg) |
313 |
</body></html>"); |
.append("</h1></td></tr></table></body></html>"); |
314 |
|
web->setHtml(html); |
315 |
} |
} |
316 |
|
|
317 |
void MainView::ensureVisible(QWidget* widget) |
void MainView::ensureVisible(QWidget* widget) |