Emit proper signals everywhere
This commit is contained in:
parent
e80e2960c6
commit
cb4d7e8b4c
@ -264,6 +264,7 @@ void Calendar::nextYear()
|
||||
m_startDate = m_startDate.addYears(1);
|
||||
updateData();
|
||||
emit startDateChanged();
|
||||
emit yearChanged();
|
||||
}
|
||||
|
||||
void Calendar::previousYear()
|
||||
@ -271,12 +272,14 @@ void Calendar::previousYear()
|
||||
m_startDate = m_startDate.addYears(-1);
|
||||
updateData();
|
||||
emit startDateChanged();
|
||||
emit yearChanged();
|
||||
}
|
||||
|
||||
void Calendar::nextMonth()
|
||||
{
|
||||
m_startDate = m_startDate.addMonths(1);
|
||||
updateData();
|
||||
emit startDateChanged();
|
||||
emit monthNameChanged();
|
||||
emit yearChanged();
|
||||
}
|
||||
@ -285,6 +288,7 @@ void Calendar::previousMonth()
|
||||
{
|
||||
m_startDate = m_startDate.addMonths(-1);
|
||||
updateData();
|
||||
emit startDateChanged();
|
||||
emit monthNameChanged();
|
||||
emit yearChanged();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user