- Timestamp:
- 01/18/10 22:32:44 (13 years ago)
- Branches:
- master, qt5
- Children:
- 446bce4
- Parents:
- c18cbd0
- Location:
- src/mvc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/eventmodel.cpp
rc18cbd0 r59c6cfe 62 62 mGroups.last().mChildCount = i - mGroups.last().mFirstEventIndex; 63 63 mGroups << EventModel::Group(QString("activity %1").arg(activityId), 0); 64 int nextActivityId = activityId;64 //int nextActivityId = activityId; 65 65 } 66 66 // add parent-child relation … … 151 151 Group group = mGroups[i]; 152 152 beginRemoveRows(idx, 0, group.mChildCount - 1); 153 bool ok =removeRows(0, group.mChildCount, idx);153 /*bool ok =*/ removeRows(0, group.mChildCount, idx); 154 154 endRemoveRows(); 155 155 //qDebug() << "removing " << group.mChildCount << " events from group:" << i << idx.data() << ":" << ok; -
src/mvc/treeview.cpp
rc18cbd0 r59c6cfe 80 80 // handle Alarm Control clicked 81 81 qDebug() << "MAP CLICKED: " << qVariantValue<QString>(aIndex.data()); 82 emit(requestForMap(aIndex)); 82 83 } 83 84 break; -
src/mvc/treeview.h
rc18cbd0 r59c6cfe 4 4 #include <QTreeView> 5 5 6 7 6 class TreeView : public QTreeView 8 7 { 8 Q_OBJECT 9 9 public: 10 10 TreeView(QWidget *aParent = NULL); … … 13 13 void mouseReleaseEvent(QMouseEvent *aEvent); 14 14 void testForControlClicked(const QModelIndex &aIndex, const QPoint &aPoint); 15 signals: 16 void requestForMap(const QModelIndex &aIndex); 15 17 }; 16 18
Note: See TracChangeset
for help on using the changeset viewer.