forked from qt-creator/qt-creator
QmlProfiler: option to get statistics from local region
Change-Id: Id11cce971b081d67052dd8e7c74f51e2e25a8fd8 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -296,6 +296,11 @@ QmlProfilerEventList *TraceWindow::getEventList() const
|
||||
return m_eventList;
|
||||
}
|
||||
|
||||
ZoomControl *TraceWindow::rangeTimes() const
|
||||
{
|
||||
return m_zoomControl.data();
|
||||
}
|
||||
|
||||
void TraceWindow::contextMenuEvent(QContextMenuEvent *ev)
|
||||
{
|
||||
emit contextMenuRequested(ev->globalPos());
|
||||
@@ -434,6 +439,30 @@ void TraceWindow::viewAll()
|
||||
emit globalZoom();
|
||||
}
|
||||
|
||||
bool TraceWindow::hasValidSelection() const
|
||||
{
|
||||
if (m_mainView->rootObject()) {
|
||||
return m_mainView->rootObject()->property("selectionRangeReady").toBool();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
qint64 TraceWindow::selectionStart() const
|
||||
{
|
||||
if (m_mainView->rootObject()) {
|
||||
return m_mainView->rootObject()->property("selectionRangeStart").toLongLong();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
qint64 TraceWindow::selectionEnd() const
|
||||
{
|
||||
if (m_mainView->rootObject()) {
|
||||
return m_mainView->rootObject()->property("selectionRangeEnd").toLongLong();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void TraceWindow::setZoomLevel(int zoomLevel)
|
||||
{
|
||||
if (m_currentZoomLevel != zoomLevel && m_mainView->rootObject()) {
|
||||
|
||||
Reference in New Issue
Block a user