diff --git a/Makefile b/Makefile index dbb2448..b7110b4 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,9 @@ LDFLAGS+=libkdchart.a 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 '*~' -delete find src -type f -name '*.moc' -delete diff --git a/src/view/AccountPanel.cpp b/src/view/AccountPanel.cpp index 3d2d401..3711d51 100644 --- a/src/view/AccountPanel.cpp +++ b/src/view/AccountPanel.cpp @@ -63,6 +63,7 @@ AccountPanel::AccountPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, pare _calendar->setNavigationBarVisible(false); _calendar->setVerticalHeaderFormat(QCalendarWidget::NoVerticalHeader); _calendar->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + connect(_calendar, SIGNAL(selectionChanged ()), this, SLOT(OnCalendarChange())); _accounts = new QString[user->GetAccountsNumber()]; for (i=0, @@ -336,7 +337,6 @@ void AccountPanel::LoadYear(int year, bool showMonth) { User* user = _kiss->GetUser(); int curMonth = -1; - QDate curDate = QDate::currentDate(); QTreeWidgetItem* parentNode, *curMonthNode = 0; std::map > ops ; std::vector::iterator it;