removed headers from *.h and *.cpp
[toast/confclerk.git] / src / gui / nowtabcontainer.cpp
1
2 #include <QTimer>
3 #include "nowtabcontainer.h"
4
5 NowTabContainer::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
12 void NowTabContainer::loadEvents( const QDate &aDate, const int aConferenceId )
13 {
14     Q_UNUSED( aDate );
15     static_cast<EventModel*>(treeView->model())->loadNowEvents( aConferenceId );
16     treeView->setAllExpanded(true);
17 }
18
19 void NowTabContainer::timerUpdateTreeView()
20 {
21     updateTreeView( QDate() );
22 }