From: pavelpa Date: Wed, 27 Jan 2010 21:40:15 +0000 (+0000) Subject: 'nowTab' list is automatically expanded X-Git-Tag: 0.5.0~165 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/c9fa699d52dc365e1243546250d01acb8f7fee35 'nowTab' list is automatically expanded --- 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(); };