From: timkoma Date: Tue, 26 Jan 2010 13:18:54 +0000 (+0000) Subject: reload favourites X-Git-Tag: 0.5.0~189 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/e4c5a03a43b79dddfabf6e819269a4eef64f4e57?ds=sidebyside reload favourites --- diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index ca1d17d..118b823 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -375,7 +375,14 @@ void MainWindow::displayWarning(const QModelIndex &aIndex) void MainWindow::eventHasChanged(int aEventId) { static_cast(dayTreeView->model())->updateModel(aEventId); - static_cast(favTreeView->model())->updateModel(aEventId); + + // we need to reload favourites, because some favourite could be deleted + //static_cast(favTreeView->model())->updateModel(aEventId); + QDate aStartDate = Conference::getById(AppSettings::confId()).start(); + QDate aEndDate = Conference::getById(AppSettings::confId()).end(); + favouriteDayNavigator->setDates(aStartDate, aEndDate); + updateFavouritesView( Conference::getById(AppSettings::confId()).start() ); + static_cast(trackTreeView->model())->updateModel(aEventId); static_cast(searchTreeView->model())->updateModel(aEventId); static_cast(nowTreeView->model())->updateModel(aEventId); diff --git a/src/gui/mainwindow.ui b/src/gui/mainwindow.ui index c2139f0..5799eea 100644 --- a/src/gui/mainwindow.ui +++ b/src/gui/mainwindow.ui @@ -118,67 +118,64 @@ - - + + Search - + - - + + true - - + + 0 0 - - + + 0 - - - + + + 0 0 - + Search again - - false - - + S - - + + :/icons/search.png:/icons/search.png - + 24 24 - + Qt::ToolButtonIconOnly - - - + + + 0 0 - + 16777215 16777215 @@ -190,108 +187,114 @@ - + - - - + + + 0 0 - + 16777215 16777215 - - + + QLayout::SetDefaultConstraint - - + + - - + + true - + type a keyword to search - - + + + + 0 + 0 + + + Search - - + + :/icons/search.png:/icons/search.png - + false - + true - + true - + false - - + + - - + + Title - + true - - + + Abstract - - + + Speaker - - + + Tag - - + + Room - - + + Qt::Horizontal - + 40 20 @@ -305,36 +308,39 @@ - - - + + + 0 1 - + 0 0 - + 16777215 16777215 + + 100 + - - + + Qt::Vertical - + QSizePolicy::Expanding - + 20 1