QmlProfiler: fix rendering bug on bottom shadow

When resetting data, the variable that tracks vertical scroll
on the qml side could go out of sync with the scroll bar.
Fixed by resetting both scrollbar and variable at reset.

Change-Id: I3a130192d460568c44de815d71aa6290c311c89a
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Christiaan Janssen
2012-02-06 17:15:28 +01:00
parent eca36a23d1
commit 584df4d8db

View File

@@ -395,6 +395,9 @@ void TraceWindow::clearDisplay()
m_zoomControl.data()->setRange(0,0); m_zoomControl.data()->setRange(0,0);
m_profiledTime = 0; m_profiledTime = 0;
updateVerticalScroll(0);
m_mainView->rootObject()->setProperty("scrollY", QVariant(0));
emit internalClearDisplay(); emit internalClearDisplay();
} }