source: src/gui/nowtabcontainer.cpp @ 83020cd

qt5
Last change on this file since 83020cd was c9fa699, checked in by pavelpa <pavelpa@…>, 12 years ago

'nowTab' list is automatically expanded

  • Property mode set to 100644
File size: 724 bytes
Line 
1
2#include <QTimer>
3#include "nowtabcontainer.h"
4
5NowTabContainer::NowTabContainer( QWidget *aParent ) : TabContainer( aParent )
6{
7    QTimer *timer = new QTimer( this );
8    connect( timer, SIGNAL(timeout()), SLOT(timerUpdateTreeView()) );
9    timer->start( 30000); // 30 seconds timer
10}
11
12void NowTabContainer::loadEvents( const QDate &aDate, const int aConferenceId )
13{
14    Q_UNUSED( aDate );
15
16    static_cast<EventModel*>(treeView->model())->loadNowEvents( aConferenceId );
17    dayNavigator->hide();
18}
19
20void NowTabContainer::timerUpdateTreeView()
21{
22    updateTreeView( QDate() );
23}
24
25void NowTabContainer::updateTreeView(const QDate &aDate)
26{
27    TabContainer::updateTreeView(aDate);
28    treeView->setAllExpanded(true);
29}
30
Note: See TracBrowser for help on using the repository browser.