source: src/gui/nowtabcontainer.cpp @ 07ae23a

qt5
Last change on this file since 07ae23a was 07ae23a, checked in by timkoma <timkoma@…>, 12 years ago

refactoring of the TABS

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