Ignore:
Timestamp:
01/18/10 15:00:32 (12 years ago)
Author:
fortefr <fortefr@…>
Branches:
master, qt5
Children:
5ff01fe
Parents:
ffd878f
Message:

Fav table update
M trunk/src/gui/mainwindow.h
M trunk/src/gui/mainwindow.cpp
M trunk/src/mvc/treeview.h
M trunk/src/mvc/eventmodel.cpp
M trunk/src/mvc/event.h
M trunk/src/fosdem.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    rffd878f r5842349  
    3737    connect(dayNavigator, SIGNAL(dateChanged(const QDate &)), SLOT(updateDayView(const QDate &)));
    3838
     39
    3940    // DAY EVENTS View
    4041    dayTreeView->setHeaderHidden(true);
     
    6768        dayNavigator->setDates(Conference::getById(confId).start(),Conference::getById(confId).end());
    6869    }
     70
     71    connect(static_cast<EventModel*>(dayTreeView->model()), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), SLOT(updateFavView()));
     72    connect(static_cast<EventModel*>(favTreeView->model()), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), SLOT(updateFavView()));
    6973}
    7074
     
    127131}
    128132
     133void MainWindow::updateFavView()
     134{
     135    int confId = 1;
     136    static_cast<EventModel*>(favTreeView->model())->loadFavEvents(Conference::getById(confId).start(),confId);
     137    favTreeView->reset();
     138    updateDayView(Conference::getById(confId).start());
     139}
Note: See TracChangeset for help on using the changeset viewer.