Emit proper signals everywhere

This commit is contained in:
Martin Klapetek 2013-11-27 00:22:08 +01:00
parent e80e2960c6
commit cb4d7e8b4c

View File

@ -264,6 +264,7 @@ void Calendar::nextYear()
m_startDate = m_startDate.addYears(1); m_startDate = m_startDate.addYears(1);
updateData(); updateData();
emit startDateChanged(); emit startDateChanged();
emit yearChanged();
} }
void Calendar::previousYear() void Calendar::previousYear()
@ -271,12 +272,14 @@ void Calendar::previousYear()
m_startDate = m_startDate.addYears(-1); m_startDate = m_startDate.addYears(-1);
updateData(); updateData();
emit startDateChanged(); emit startDateChanged();
emit yearChanged();
} }
void Calendar::nextMonth() void Calendar::nextMonth()
{ {
m_startDate = m_startDate.addMonths(1); m_startDate = m_startDate.addMonths(1);
updateData(); updateData();
emit startDateChanged();
emit monthNameChanged(); emit monthNameChanged();
emit yearChanged(); emit yearChanged();
} }
@ -285,6 +288,7 @@ void Calendar::previousMonth()
{ {
m_startDate = m_startDate.addMonths(-1); m_startDate = m_startDate.addMonths(-1);
updateData(); updateData();
emit startDateChanged();
emit monthNameChanged(); emit monthNameChanged();
emit yearChanged(); emit yearChanged();
} }