'nowTab' list is automatically expanded
authorpavelpa <pavelpa@localhost>
Wed, 27 Jan 2010 21:40:15 +0000 (21:40 +0000)
committerpavelpa <pavelpa@localhost>
Wed, 27 Jan 2010 21:40:15 +0000 (21:40 +0000)
src/gui/nowtabcontainer.cpp
src/gui/nowtabcontainer.h

index 7fa2382..79682f8 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);
+}
+
index 2e80968..9154950 100644 (file)
@@ -14,6 +14,9 @@ public:
 protected:
     virtual void loadEvents( const QDate &aDate, const int aConferenceId );
 
+protected slots:
+    virtual void updateTreeView(const QDate &aDate);
+
 private slots:
     void timerUpdateTreeView();
 };