- Timestamp:
- 12/12/11 23:53:04 (11 years ago)
- Branches:
- master, qt5
- Children:
- e21d164
- Parents:
- 167a532
- Location:
- src/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
r167a532 rd12c1e0 162 162 163 163 void MainWindow::on_searchAction_triggered() { 164 searchTabContainer->showSearchDialog(); 165 tabWidget->setCurrentWidget(searchTab); 164 if (tabWidget->currentWidget() == searchTab) 165 searchTabContainer->showSearchDialog(!searchTabContainer->searchDialogIsVisible()); 166 else { 167 tabWidget->setCurrentWidget(searchTab); 168 searchTabContainer->showSearchDialog(); 169 } 166 170 } 167 171 -
src/gui/searchtabcontainer.cpp
r167a532 rd12c1e0 40 40 41 41 42 bool SearchTabContainer::searchDialogIsVisible() const { 43 return header->isVisible(); 44 } 45 46 42 47 int SearchTabContainer::searchResultCount(const QDate& date) const { 43 48 int confId = Conference::activeConference(); … … 47 52 48 53 49 void SearchTabContainer::showSearchDialog( ) {50 header->s how();51 treeView-> hide();54 void SearchTabContainer::showSearchDialog(bool show) { 55 header->setVisible(show); 56 treeView->setVisible(!show); 52 57 } 53 58 -
src/gui/searchtabcontainer.h
r167a532 rd12c1e0 32 32 SearchTabContainer(QWidget *aParent); 33 33 virtual ~SearchTabContainer() {} 34 bool searchDialogIsVisible() const; 34 35 int searchResultCount(const QDate& date) const; ///< returns the number of events found on that specific date 35 36 … … 41 42 42 43 public slots: 43 void showSearchDialog( );44 void showSearchDialog(bool show=true); 44 45 45 46 private slots:
Note: See TracChangeset
for help on using the changeset viewer.