equal
deleted
inserted
replaced
22 #include "memspythreaddetailindexview.h" |
22 #include "memspythreaddetailindexview.h" |
23 #include "viewmanager.cpp" |
23 #include "viewmanager.cpp" |
24 |
24 |
25 void MemSpyThreadDetailIndexView::initialize(const QVariantMap& params) |
25 void MemSpyThreadDetailIndexView::initialize(const QVariantMap& params) |
26 { |
26 { |
|
27 setTitle(tr("Details")); |
|
28 |
|
29 mProcessName = params["pname"].toString(); |
|
30 mThreadName = params["tname"].toString(); |
|
31 |
27 MemSpyView::initialize(params); |
32 MemSpyView::initialize(params); |
28 |
|
29 setTitle(tr("Thread Details")); |
|
30 |
33 |
31 mThreadId = qVariantValue<ThreadId>(params["tid"]); |
34 mThreadId = qVariantValue<ThreadId>(params["tid"]); |
32 |
35 |
33 QStringList lines = QStringList() << tr("General") << tr("Heap") << tr("Stack") |
36 QStringList lines = QStringList() << tr("General") << tr("Heap") << tr("Stack") |
34 << tr("Chunks") << tr("Code Segments") << tr("Open Files") << tr("Active Objects") |
37 << tr("Chunks") << tr("Code Segments") << tr("Open Files") << tr("Active Objects") |
67 mPriorityMenu->addAction(tr("Abs. Real Time 7"), this, SLOT(changePriority())); |
70 mPriorityMenu->addAction(tr("Abs. Real Time 7"), this, SLOT(changePriority())); |
68 mPriorityMenu->addAction(tr("Abs. Real Time 8"), this, SLOT(changePriority())); |
71 mPriorityMenu->addAction(tr("Abs. Real Time 8"), this, SLOT(changePriority())); |
69 |
72 |
70 return menu; |
73 return menu; |
71 } |
74 } |
72 |
75 |
|
76 bool MemSpyThreadDetailIndexView::isBreadCrumbVisible() const |
|
77 { |
|
78 return true; |
|
79 } |
|
80 |
|
81 QString MemSpyThreadDetailIndexView::getBreadCrumbText() const |
|
82 { |
|
83 return tr("Processes > %1 > Threads > %2").arg(mProcessName).arg(mThreadName); |
|
84 } |
|
85 |
73 void MemSpyThreadDetailIndexView::changePriority() |
86 void MemSpyThreadDetailIndexView::changePriority() |
74 { |
87 { |
75 QAction *s = qobject_cast<QAction*>(sender()); |
88 QAction *s = qobject_cast<QAction*>(sender()); |
76 int index = mPriorityMenu->actions().indexOf(s); |
89 int index = mPriorityMenu->actions().indexOf(s); |
77 |
90 |
109 ThreadInfoTypeLDD, ThreadInfoTypePDD }; |
122 ThreadInfoTypeLDD, ThreadInfoTypePDD }; |
110 |
123 |
111 QVariantMap map; |
124 QVariantMap map; |
112 map.insert("tid", mThreadId); |
125 map.insert("tid", mThreadId); |
113 map.insert("type", types[index.row()]); |
126 map.insert("type", types[index.row()]); |
|
127 map.insert("pname", mProcessName); |
|
128 map.insert("tname", mThreadName); |
114 mViewManager.showView(ThreadDetailView, map); |
129 mViewManager.showView(ThreadDetailView, map); |
115 } |
130 } |
116 |
131 |