Changeset 9208bdb for src/gui


Ignore:
Timestamp:
01/19/10 21:58:29 (12 years ago)
Author:
korrco <korrco@…>
Branches:
master, qt5
Children:
1fe2f21
Parents:
395d6d3
Message:

support for view activities with their names added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r395d6d3 r9208bdb  
    77#include <schedulexmlparser.h>
    88
     9#include <activity.h>
    910#include <eventmodel.h>
    1011#include <delegate.h>
     
    3839    connect(mXmlParser, SIGNAL(progressStatus(int)), this, SLOT(showParsingProgress(int)));
    3940    statusBar()->showMessage(tr("Ready"));
     41
     42    //create activity map
     43    Activity::updateActivityMap();
    4044
    4145    connect(dayNavigator, SIGNAL(dateChanged(const QDate &)), SLOT(updateDayView(const QDate &)));
     
    136140        activityDayNavigator->setDates(aStartDate, aEndDate);
    137141    }
     142    //update activity map
     143    Activity::updateActivityMap();
    138144}
    139145
     
    179185    case 2: //index 2 of tabWidget: activitiesTab
    180186        {
    181             static_cast<EventModel*>(actTreeView->model())->loadEventsByActivities(Conference::getById(confId).start(),confId);
     187            static_cast<EventModel*>(actTreeView->model())->loadEventsByActivities(Conference::getById(confId).start(), confId);
    182188            actTreeView->reset();
    183189            activityDayNavigator->show();
     
    193199void MainWindow::updateActivitiesDayView(const QDate &aDate)
    194200{
    195     static_cast<EventModel*>(actTreeView->model())->loadEventsByActivities(aDate,confId);
     201    static_cast<EventModel*>(actTreeView->model())->loadEventsByActivities(aDate, confId);
    196202    actTreeView->reset();
    197203    activityDayNavigator->show();
     
    235241    window.exec();
    236242}
    237 
Note: See TracChangeset for help on using the changeset viewer.