equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "memspymainview.h" |
|
19 #include "viewmanager.h" |
|
20 |
|
21 #include <QStringListModel> |
|
22 #include <QDebug> |
|
23 |
|
24 void MemSpyMainView::initialize(const QVariantMap& params) |
|
25 { |
|
26 setTitle("MemSpy"); |
|
27 |
|
28 MemSpyView::initialize(params); |
|
29 |
|
30 QStringList items = QStringList() |
|
31 << tr("Processes & Threads") |
|
32 << tr("Kernel Objects") |
|
33 << tr("Tracking"); |
|
34 mListView.setModel(new QStringListModel(items, this)); |
|
35 |
|
36 QObject::connect(&mListView, SIGNAL(released(QModelIndex)), this, SLOT(itemClicked(QModelIndex))); |
|
37 } |
|
38 |
|
39 void MemSpyMainView::itemClicked(const QModelIndex& index) |
|
40 { |
|
41 Q_UNUSED(index); |
|
42 ViewIndex indexes[] = { ProcessView, KernelObjectTypeView, TrackingView }; |
|
43 mViewManager.showView(indexes[index.row()]); |
|
44 } |
|
45 |
|
46 bool MemSpyMainView::isBreadCrumbVisible() const |
|
47 { |
|
48 return false; |
|
49 } |
|
50 |
|