QmlProfiler: scroll automatically when selecting events out of view

Change-Id: I2f242895b00792d2e6930ec642209be886e22bad
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Christiaan Janssen
2012-02-03 16:33:51 +01:00
parent 0286148a14
commit 95f1bb190f
5 changed files with 32 additions and 1 deletions

View File

@@ -303,6 +303,7 @@ void TraceWindow::reset(QDeclarativeDebugConnection *conn)
connect(this, SIGNAL(selectNextEventInDisplay(QVariant)), m_mainView->rootObject(), SLOT(selectNextWithId(QVariant)));
connect(m_mainView->rootObject(), SIGNAL(selectedEventIdChanged(int)), this, SIGNAL(selectedEventIdChanged(int)));
connect(m_mainView->rootObject(), SIGNAL(changeToolTip(QString)), this, SLOT(updateToolTip(QString)));
connect(m_mainView->rootObject(), SIGNAL(updateVerticalScroll(int)), this, SLOT(updateVerticalScroll(int)));
connect(this, SIGNAL(internalClearDisplay()), m_mainView->rootObject(), SLOT(clearAll()));
connect(this,SIGNAL(internalClearDisplay()), m_overview->rootObject(), SLOT(clearDisplay()));
@@ -582,5 +583,10 @@ void TraceWindow::updateToolTip(const QString &text)
setToolTip(text);
}
void TraceWindow::updateVerticalScroll(int newPosition)
{
m_mainView->verticalScrollBar()->setValue(newPosition);
}
} // namespace Internal
} // namespace QmlProfiler