'nowTab' list is automatically expanded
[toast/confclerk.git] / src / gui / nowtabcontainer.cpp
index 7fa2382c5ad55bedecaa76e42753900dca1a7f36..79682f84622956a6f85aa79e1c08f79a60a70149 100644 (file)
@@ -12,11 +12,19 @@ NowTabContainer::NowTabContainer( QWidget *aParent ) : TabContainer( aParent )
 void NowTabContainer::loadEvents( const QDate &aDate, const int aConferenceId )
 {
     Q_UNUSED( aDate );
+
     static_cast<EventModel*>(treeView->model())->loadNowEvents( aConferenceId );
-    treeView->setAllExpanded(true);
+    dayNavigator->hide();
 }
 
 void NowTabContainer::timerUpdateTreeView()
 {
     updateTreeView( QDate() );
 }
+
+void NowTabContainer::updateTreeView(const QDate &aDate)
+{
+    TabContainer::updateTreeView(aDate);
+    treeView->setAllExpanded(true);
+}
+