fe looks like completed
This commit is contained in:
+14
-5
@@ -91,6 +91,7 @@ QByteArray WebPage::document()
|
||||
customStyles(page);
|
||||
lastDestinations(page);
|
||||
trafficBlock(page);
|
||||
topDestinations(page);
|
||||
blockedDestinations(page);
|
||||
informationBlock(page);
|
||||
copyright(page);
|
||||
@@ -139,11 +140,19 @@ void WebPage::trafficBlock(QString &document)
|
||||
|
||||
void WebPage::topDestinations(QString &document)
|
||||
{
|
||||
// QString dailyTopList;
|
||||
// for (const auto& dTop: Statistics::dailyTopDestinations())
|
||||
// {
|
||||
// QStringList
|
||||
// }
|
||||
QString dailyTopList;
|
||||
for (const auto& dTop: Statistics::dailyTopDestinations())
|
||||
{
|
||||
dailyTopList += dailyTopDestinationItem(dTop);
|
||||
}
|
||||
document.replace(g::c::HA_DAILY_TOP_DESTINATIONS_LIST, dailyTopList);
|
||||
|
||||
QString totalTopList;
|
||||
for (const auto& dTop: Statistics::totalTopDestinations())
|
||||
{
|
||||
totalTopList += totalTopDestinationItem(dTop);
|
||||
}
|
||||
document.replace(g::c::HA_TOTAL_TOP_DESTINATIONS_LIST, totalTopList);
|
||||
}
|
||||
|
||||
void WebPage::blockedDestinations(QString &document)
|
||||
|
||||
Reference in New Issue
Block a user