From: timkoma Date: Tue, 26 Jan 2010 10:09:37 +0000 (+0000) Subject: search done X-Git-Tag: 0.5.0~193 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/01df23ff94cddce809d0f0d4144b62518784c16f search done --- diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 1429731..17ae65b 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -260,7 +260,7 @@ void MainWindow::updateSearchView(const QDate &aDate) if( eventsCount || searchDayNavigator->getCurrentDate() != Conference::getById(AppSettings::confId()).start() ){ searchVerticalWidget->show(); - searchAgainButton->show(); + //searchAgainButton->show(); searchTreeView->show(); searchHead->hide(); } @@ -336,13 +336,19 @@ void MainWindow::searchClicked() qDebug() << "\nKeyword to search: " << keyword; mSqlEngine->searchEvent( AppSettings::confId(), columns, keyword ); + QDate aStartDate = Conference::getById(AppSettings::confId()).start(); + QDate aEndDate = Conference::getById(AppSettings::confId()).end(); + searchDayNavigator->setDates(aStartDate, aEndDate); updateSearchView( Conference::getById(AppSettings::confId()).start() ); } void MainWindow::searchAgainClicked() { searchHead->show(); - searchAgainButton->hide(); + //searchAgainButton->hide(); + searchVerticalWidget->hide(); + searchTreeView->hide(); + } void MainWindow::conferenceMapClicked() diff --git a/src/gui/mainwindow.ui b/src/gui/mainwindow.ui index 76ef13c..d6932b2 100644 --- a/src/gui/mainwindow.ui +++ b/src/gui/mainwindow.ui @@ -118,39 +118,67 @@ - - + + Search - + - - + + true - - + + 0 0 - + + + 0 + - - + + + + 0 + 0 + + + Search again - + + false + + S - - Qt::ToolButtonTextOnly + + + :/icons/search.png:/icons/search.png + + + + 24 + 24 + + + + Qt::ToolButtonIconOnly - - + + + + 0 + 0 + + + 16777215 16777215 @@ -162,104 +190,108 @@ - + - - - + + + 0 0 - + 16777215 16777215 - - + + QLayout::SetDefaultConstraint - - + + - - + + true - + type a keyword to search - - + + Search - + + + :/icons/search.png:/icons/search.png + + false - + true - + true - + false - - + + - - + + Title - + true - - + + Abstract - - + + Speaker - - + + Tag - - + + Room - - + + Qt::Horizontal - + 40 20 @@ -273,36 +305,39 @@ - - - + + + 0 1 - + 0 0 - + 16777215 16777215 + + 100 + - - + + Qt::Vertical - + QSizePolicy::Expanding - + 20 1 diff --git a/src/icons.qrc b/src/icons.qrc index 434d3a3..808d862 100644 --- a/src/icons.qrc +++ b/src/icons.qrc @@ -11,5 +11,6 @@ icons/exclamation-iconOn.png icons/exclamation-iconOff.png icons/info.png + icons/search.png diff --git a/src/icons/search.png b/src/icons/search.png new file mode 100644 index 0000000..0dacd00 Binary files /dev/null and b/src/icons/search.png differ