Enabled zooming the chart.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30659 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-05-07 15:54:16 +00:00
parent 6619cc4d56
commit f2bc8d2331

View File

@ -314,6 +314,8 @@ ThreadWindow::ActivityPage::ActivityPage()
ObjectDeleter<ChartRenderer> rendererDeleter(fActivityChartRenderer);
fActivityChart = new Chart(fActivityChartRenderer);
fActivityChart->SetDomainZoomLimit(1000);
// maximal zoom: 1 ms for the whole displayed domain
BGroupLayoutBuilder(this)
.Add(new BScrollView("activity scroll", fActivityChart, 0, true, false))
@ -403,6 +405,5 @@ ThreadWindow::ActivityPage::SetModel(ThreadModel* model)
fPreemptionTimeData = new(std::nothrow) ThreadActivityData(fThreadModel,
LATENCY_TIME);
fActivityChart->AddDataSource(fPreemptionTimeData, &latencyConfig);
fActivityChart->SetDisplayDomain(ChartDataRange(0, 500000));
}
}