]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/gui/searchtabcontainer.cpp
Handle redirects when importing schedules over the network.
[toast/confclerk.git] / src / gui / searchtabcontainer.cpp
index 3abc8e5b194dc907ddb9d5375af82dd0cd16a7b2..369985d8a800188c1304ccaa0f308307ee814d61 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2010 Ixonos Plc.
- * Copyright (C) 2011 Philipp Spitzer, gregor herrmann
+ * Copyright (C) 2011-2012 Philipp Spitzer, gregor herrmann
  *
  * This file is part of ConfClerk.
  *
@@ -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);
 }