X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/e7340e12904749e2625f25fb858f642d7bfce8f5..0d4ecc29c4f823831acd446c4784054682c20d07:/src/gui/mainwindow.cpp diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index ec6fc0e..43ae8b2 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -121,6 +121,7 @@ MainWindow::MainWindow(int aEventId, QWidget *aParent) connect(nowTreeView, SIGNAL(requestForWarning(const QModelIndex &)), SLOT(displayWarning(const QModelIndex &))); // event search button clicked connect(searchButton, SIGNAL(clicked()), SLOT(searchClicked())); + connect(searchAgainButton, SIGNAL(clicked()), SLOT(searchAgainClicked())); // event conference map button clicked connect(showMapButton, SIGNAL(clicked()), SLOT(conferenceMapClicked())); // @@ -150,7 +151,8 @@ MainWindow::MainWindow(int aEventId, QWidget *aParent) } searchTreeView->hide(); - searchDayNavigator->hide(); + searchVerticalWidget->hide(); + searchHead->show(); // open dialog for given Event ID // this is used in case Alarm Dialog request application to start @@ -232,12 +234,15 @@ void MainWindow::updateSearchView(const QDate &aDate) searchTreeView->reset(); int eventsCount = static_cast(searchTreeView->model())->loadSearchResultEvents(aDate,AppSettings::confId()); if( eventsCount ){ - searchDayNavigator->show(); + searchVerticalWidget->show(); + searchAgainButton->show(); searchTreeView->show(); + searchHead->hide(); } else{ searchTreeView->hide(); - searchDayNavigator->hide(); + searchVerticalWidget->hide(); + searchHead->show(); } } @@ -293,6 +298,12 @@ void MainWindow::searchClicked() updateSearchView( Conference::getById(AppSettings::confId()).start() ); } +void MainWindow::searchAgainClicked() +{ + searchHead->show(); + searchAgainButton->hide(); +} + void MainWindow::conferenceMapClicked() {