From c9fa699d52dc365e1243546250d01acb8f7fee35 Mon Sep 17 00:00:00 2001 From: pavelpa Date: Wed, 27 Jan 2010 21:40:15 +0000 Subject: [PATCH] 'nowTab' list is automatically expanded --- src/gui/nowtabcontainer.cpp | 10 +++++++++- src/gui/nowtabcontainer.h | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/gui/nowtabcontainer.cpp b/src/gui/nowtabcontainer.cpp index 7fa2382..79682f8 100644 --- a/src/gui/nowtabcontainer.cpp +++ b/src/gui/nowtabcontainer.cpp @@ -12,11 +12,19 @@ NowTabContainer::NowTabContainer( QWidget *aParent ) : TabContainer( aParent ) void NowTabContainer::loadEvents( const QDate &aDate, const int aConferenceId ) { Q_UNUSED( aDate ); + static_cast(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); +} + diff --git a/src/gui/nowtabcontainer.h b/src/gui/nowtabcontainer.h index 2e80968..9154950 100644 --- a/src/gui/nowtabcontainer.h +++ b/src/gui/nowtabcontainer.h @@ -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(); }; -- 2.39.5