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 "memspytrackingview.h" |
|
19 #include "viewmanager.h" |
|
20 |
|
21 #include <QStringListModel> |
|
22 #include <QDebug> |
|
23 |
|
24 void MemSpyTrackingView::initialize(const QVariantMap& params) |
|
25 { |
|
26 setTitle("MemSpy"); |
|
27 |
|
28 MemSpyView::initialize(params); |
|
29 |
|
30 QStringList items = QStringList() |
|
31 << tr("System Wide Memory Tracking") |
|
32 << tr("Heap Dumps"); |
|
33 mListView.setModel(new QStringListModel(items, this)); |
|
34 |
|
35 QObject::connect(&mListView, SIGNAL(released(QModelIndex)), this, SLOT(itemClicked(QModelIndex))); |
|
36 } |
|
37 |
|
38 void MemSpyTrackingView::itemClicked(const QModelIndex& index) |
|
39 { |
|
40 Q_UNUSED(index); |
|
41 ViewIndex indexes[] = { SwmtView, HeapDumpsView }; |
|
42 mViewManager.showView(indexes[index.row()]); |
|
43 } |
|
44 |
|
45 bool MemSpyTrackingView::isBreadCrumbVisible() const |
|
46 { |
|
47 return false; |
|
48 } |
|
49 |
|