forked from qt-creator/qt-creator
QmlProfiler: Rename get* and find* methods to their canonical names
Also, all methods about events in models don't really need the "event" prefix as that is what the models are about. Change-Id: I7b995aa9c9dce7e01d4c862d094b1e73e6b6fb40 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -265,7 +265,7 @@ void QmlProfilerTraceView::selectByTypeIndex(int typeIndex)
|
||||
return;
|
||||
|
||||
for (int modelIndex = 0; modelIndex < d->m_modelProxy->modelCount(); ++modelIndex) {
|
||||
int eventId = d->m_modelProxy->getEventIdForTypeIndex(modelIndex, typeIndex);
|
||||
int eventId = d->m_modelProxy->eventIdForTypeIndex(modelIndex, typeIndex);
|
||||
if (eventId != -1) {
|
||||
QMetaObject::invokeMethod(rootObject, "selectById",
|
||||
Q_ARG(QVariant,QVariant(modelIndex)),
|
||||
@@ -282,7 +282,7 @@ void QmlProfilerTraceView::selectBySourceLocation(const QString &filename, int l
|
||||
return;
|
||||
|
||||
for (int modelIndex = 0; modelIndex < d->m_modelProxy->modelCount(); ++modelIndex) {
|
||||
int eventId = d->m_modelProxy->getEventIdForLocation(modelIndex, filename, line, column);
|
||||
int eventId = d->m_modelProxy->eventIdForLocation(modelIndex, filename, line, column);
|
||||
if (eventId != -1) {
|
||||
QMetaObject::invokeMethod(rootObject, "selectById",
|
||||
Q_ARG(QVariant,QVariant(modelIndex)),
|
||||
|
||||
Reference in New Issue
Block a user