if(QDate::currentDate()==date||QDate::currentDate()<date)//The future case would be a bug, but it have to be handled anyway or it will appear in "very long time ago"
returnm_slHistoryConst[HistoryConst::Today];
//Check for last week
for(inti=1;i<7;i++){
if(QDate::currentDate().addDays(-i)==date)
returnm_slHistoryConst[i];//Yesterday to Six_days_ago