qt5
Last change
on this file since a790a90 was
a790a90,
checked in by pavelpa <pavelpa@…>, 12 years ago
|
removed headers from *.h and *.cpp
|
-
Property mode set to
100644
|
File size:
593 bytes
|
Rev | Line | |
---|
[07ae23a] | 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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.