##// END OF EJS Templates
New Catalogue API WIP, basic models and views implemented...
New Catalogue API WIP, basic models and views implemented Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1406:10c898bf875c
r1406:10c898bf875c
Show More
eventstreeview.cpp
12 lines | 340 B | text/x-c | CppLexer
#include <Catalogue2/eventsmodel.h>
#include <Catalogue2/eventstreeview.h>
EventsTreeView::EventsTreeView(QWidget* parent) : QTreeView(parent)
{
this->setModel(new EventsModel());
}
void EventsTreeView::setEvents(std::vector<CatalogueController::Event_ptr> events)
{
static_cast<EventsModel*>(this->model())->setEvents(events);
}