Forgot to connect calendar change signal

This commit is contained in:
Grégory Soutadé 2012-01-29 11:34:52 +01:00
parent c78b88b387
commit fe2e6c4bf4
2 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,9 @@ LDFLAGS+=libkdchart.a
all: mojito libkdchart.a kc all: mojito libkdchart.a kc
clean: clean_libkdchart clean_all: clean clean_libkdchart
clean:
find src -type f -name '*.o' -delete find src -type f -name '*.o' -delete
find src -type f -name '*~' -delete find src -type f -name '*~' -delete
find src -type f -name '*.moc' -delete find src -type f -name '*.moc' -delete

View File

@ -63,6 +63,7 @@ AccountPanel::AccountPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, pare
_calendar->setNavigationBarVisible(false); _calendar->setNavigationBarVisible(false);
_calendar->setVerticalHeaderFormat(QCalendarWidget::NoVerticalHeader); _calendar->setVerticalHeaderFormat(QCalendarWidget::NoVerticalHeader);
_calendar->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); _calendar->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
connect(_calendar, SIGNAL(selectionChanged ()), this, SLOT(OnCalendarChange()));
_accounts = new QString[user->GetAccountsNumber()]; _accounts = new QString[user->GetAccountsNumber()];
for (i=0, for (i=0,
@ -336,7 +337,6 @@ void AccountPanel::LoadYear(int year, bool showMonth)
{ {
User* user = _kiss->GetUser(); User* user = _kiss->GetUser();
int curMonth = -1; int curMonth = -1;
QDate curDate = QDate::currentDate();
QTreeWidgetItem* parentNode, *curMonthNode = 0; QTreeWidgetItem* parentNode, *curMonthNode = 0;
std::map<int, std::vector<int> > ops ; std::map<int, std::vector<int> > ops ;
std::vector<int>::iterator it; std::vector<int>::iterator it;