Changeset 59c6cfe for src/mvc


Ignore:
Timestamp:
01/18/10 22:32:44 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
446bce4
Parents:
c18cbd0
Message:

started work on displaying map

  • implemented mapwindow
  • map is hard-coded for now

TODO: finish getting map path from the event

Location:
src/mvc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/eventmodel.cpp

    rc18cbd0 r59c6cfe  
    6262            mGroups.last().mChildCount = i - mGroups.last().mFirstEventIndex;
    6363            mGroups << EventModel::Group(QString("activity %1").arg(activityId), 0);
    64             int nextActivityId = activityId;
     64            //int nextActivityId = activityId;
    6565        }
    6666        // add parent-child relation
     
    151151        Group group = mGroups[i];
    152152        beginRemoveRows(idx, 0, group.mChildCount - 1);
    153         bool ok = removeRows(0, group.mChildCount, idx);
     153        /*bool ok =*/ removeRows(0, group.mChildCount, idx);
    154154        endRemoveRows();
    155155        //qDebug() << "removing " << group.mChildCount << " events from group:" << i << idx.data() << ":" << ok;
  • src/mvc/treeview.cpp

    rc18cbd0 r59c6cfe  
    8080                // handle Alarm Control clicked
    8181                qDebug() << "MAP CLICKED: " << qVariantValue<QString>(aIndex.data());
     82                emit(requestForMap(aIndex));
    8283            }
    8384        break;
  • src/mvc/treeview.h

    rc18cbd0 r59c6cfe  
    44#include <QTreeView>
    55
    6 
    76class TreeView : public QTreeView
    87{
     8    Q_OBJECT
    99public:
    1010    TreeView(QWidget *aParent = NULL);
     
    1313    void mouseReleaseEvent(QMouseEvent *aEvent);
    1414    void testForControlClicked(const QModelIndex &aIndex, const QPoint &aPoint);
     15signals:
     16    void requestForMap(const QModelIndex &aIndex);
    1517};
    1618
Note: See TracChangeset for help on using the changeset viewer.