connect(dayNavigator, SIGNAL(dateChanged(const QDate &)), SLOT(updateDayView(const QDate &)));
+
// DAY EVENTS View
dayTreeView->setHeaderHidden(true);
dayTreeView->setRootIsDecorated(false);
int confId = 1;
dayNavigator->setDates(Conference::getById(confId).start(),Conference::getById(confId).end());
}
+
+ connect(static_cast<EventModel*>(dayTreeView->model()), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), SLOT(updateFavView()));
+ connect(static_cast<EventModel*>(favTreeView->model()), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), SLOT(updateFavView()));
}
MainWindow::~MainWindow()
dayNavigator->show();
}
+void MainWindow::updateFavView()
+{
+ int confId = 1;
+ static_cast<EventModel*>(favTreeView->model())->loadFavEvents(Conference::getById(confId).start(),confId);
+ favTreeView->reset();
+ updateDayView(Conference::getById(confId).start());
+}