diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-10-27 18:59:00 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2014-11-21 10:54:07 +0100 |
commit | b2c8e7011743b3c8a51431401e6c2b49b0613e6f (patch) | |
tree | eedc25323228d494326f8ad3bfb9db4ed6006664 /src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp | |
parent | b7742f79b621ed6424fc5f9a3097208a0ba64768 (diff) |
QmlProfiler: Sanitize AbstractTimelineModel public interface
Remove things we don't need and add some more methods to allow
specialized models to operate without access to private class.
Change-Id: I1f42c4299825f581361a79dd0a0e00c1c08b79e7
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp index 177dcc3ea82..1248bd34b87 100644 --- a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp @@ -199,8 +199,8 @@ float QmlProfilerAnimationsModel::relativeHeight(int index) const // Add some height to the events if we're far from the scale threshold of 2 * DefaultRowHeight. // Like that you can see the smaller events more easily. - int scaleThreshold = 2 * DefaultRowHeight - rowHeight(d->rowFromThreadId(data.threadId)); - float boost = scaleThreshold > 0 ? (0.15 * scaleThreshold / DefaultRowHeight) : 0; + int scaleThreshold = 2 * defaultRowHeight() - rowHeight(d->rowFromThreadId(data.threadId)); + float boost = scaleThreshold > 0 ? (0.15 * scaleThreshold / defaultRowHeight()) : 0; return boost + (1.0 - boost) * (float)data.animationcount / (float)(data.threadId == QmlDebug::GuiThread ? d->maxGuiThreadAnimations : |