--- a/memspyui/ui/hb/src/memspythreaddetailindexview.cpp Thu Jun 17 15:34:52 2010 +0300
+++ b/memspyui/ui/hb/src/memspythreaddetailindexview.cpp Thu Jun 24 14:55:55 2010 +0300
@@ -24,9 +24,12 @@
void MemSpyThreadDetailIndexView::initialize(const QVariantMap& params)
{
- MemSpyView::initialize(params);
+ setTitle(tr("Details"));
- setTitle(tr("Thread Details"));
+ mProcessName = params["pname"].toString();
+ mThreadName = params["tname"].toString();
+
+ MemSpyView::initialize(params);
mThreadId = qVariantValue<ThreadId>(params["tid"]);
@@ -69,7 +72,17 @@
return menu;
}
-
+
+bool MemSpyThreadDetailIndexView::isBreadCrumbVisible() const
+{
+ return true;
+}
+
+QString MemSpyThreadDetailIndexView::getBreadCrumbText() const
+{
+ return tr("Processes > %1 > Threads > %2").arg(mProcessName).arg(mThreadName);
+}
+
void MemSpyThreadDetailIndexView::changePriority()
{
QAction *s = qobject_cast<QAction*>(sender());
@@ -111,6 +124,8 @@
QVariantMap map;
map.insert("tid", mThreadId);
map.insert("type", types[index.row()]);
+ map.insert("pname", mProcessName);
+ map.insert("tname", mThreadName);
mViewManager.showView(ThreadDetailView, map);
}