]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/gui/searchtabcontainer.cpp
When the search toolbox button is clicked when the search dialog is already open...
[toast/confclerk.git] / src / gui / searchtabcontainer.cpp
index 3abc8e5b194dc907ddb9d5375af82dd0cd16a7b2..0f4aac8475cad9e61651c997608c503377fabd39 100644 (file)
@@ -39,6 +39,11 @@ SearchTabContainer::SearchTabContainer(QWidget *aParent) : TabContainer( aParent
 }
 
 
+bool SearchTabContainer::searchDialogIsVisible() const {
+    return header->isVisible();
+}
+
+
 int SearchTabContainer::searchResultCount(const QDate& date) const {
     int confId = Conference::activeConference();
     if (confId == -1) return 0;
@@ -46,9 +51,9 @@ int SearchTabContainer::searchResultCount(const QDate& date) const {
 }
 
 
-void SearchTabContainer::showSearchDialog() {
-    header->show();
-    treeView->hide();
+void SearchTabContainer::showSearchDialog(bool show) {
+    header->setVisible(show);
+    treeView->setVisible(!show);
 }