equal
deleted
inserted
replaced
30 QStringList items = QStringList() |
30 QStringList items = QStringList() |
31 << tr("Processes & Threads") |
31 << tr("Processes & Threads") |
32 << tr("Kernel Objects") |
32 << tr("Kernel Objects") |
33 << tr("Tracking") |
33 << tr("Tracking") |
34 << tr("Servers") |
34 << tr("Servers") |
35 << tr("ECom"); |
35 << tr("ECom") |
|
36 << tr("Window Groups"); |
36 mListView.setModel(new QStringListModel(items, this)); |
37 mListView.setModel(new QStringListModel(items, this)); |
37 |
38 |
38 QObject::connect(&mListView, SIGNAL(released(QModelIndex)), this, SLOT(itemClicked(QModelIndex))); |
39 QObject::connect(&mListView, SIGNAL(released(QModelIndex)), this, SLOT(itemClicked(QModelIndex))); |
39 } |
40 } |
40 |
41 |
41 void MemSpyMainView::itemClicked(const QModelIndex& index) |
42 void MemSpyMainView::itemClicked(const QModelIndex& index) |
42 { |
43 { |
43 Q_UNUSED(index); |
44 Q_UNUSED(index); |
44 ViewIndex indexes[] = { ProcessView, KernelObjectTypeView, TrackingView, ServerView, EComCategoryView }; |
45 ViewIndex indexes[] = { |
|
46 ProcessView, |
|
47 KernelObjectTypeView, |
|
48 TrackingView, |
|
49 ServerView, |
|
50 EComCategoryView, |
|
51 WindowGroupsView |
|
52 }; |
45 mViewManager.showView(indexes[index.row()]); |
53 mViewManager.showView(indexes[index.row()]); |
46 } |
54 } |
47 |
55 |
48 bool MemSpyMainView::isBreadCrumbVisible() const |
56 bool MemSpyMainView::isBreadCrumbVisible() const |
49 { |
57 { |