-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow_tab_overview.cpp
29 lines (19 loc) · 1.14 KB
/
mainwindow_tab_overview.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "mainwindow.h"
void MainWindow::LoadOverviewTab()
{
QString overview ;
Contact &c = db.getSelected();
Todo &todo = c.getTodo() ;
History &h = c.getHistory() ;
overview = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\"><html><head></head><body>\n" ;
overview += "<p><span style=\" font-size:18pt; font-weight:600; color:#000080;\">" + c.getFormattedName(false, false) + "</span></p>\n" ;
overview += c.getOverview(Contact::contactAsHTML) ;
overview += "<p><span style=\" font-size:18pt; font-weight:600; color:#000080;\">Future Appointments</span></p>\n" ;
overview += calendar.getOverview(calendarAsHTML, c.getField(Contact::ID), true) ;
overview += "<p><span style=\" font-size:18pt; font-weight:600; color:#000080;\">To Do List</span></p>\n" ;
overview += todo.getOverview(todoAsHTML) ;
overview += "<p><span style=\" font-size:18pt; font-weight:600; color:#000080;\">Recent Change History</span></p>\n" ;
overview += h.getOverview(historyTopLinesAsHTML) ;
overview += "</body></html>\n" ;
ui->editOverview->setText(overview) ;
}