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/abstracttimelinemodel_p.h | |
parent | b7742f79b621ed6424fc5f9a3097208a0ba64768 (diff) | |
download | qt-creator-b2c8e7011743b3c8a51431401e6c2b49b0613e6f.tar.gz |
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/abstracttimelinemodel_p.h')
-rw-r--r-- | src/plugins/qmlprofiler/abstracttimelinemodel_p.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/abstracttimelinemodel_p.h b/src/plugins/qmlprofiler/abstracttimelinemodel_p.h index c415dcff04..a3f4f3e5d7 100644 --- a/src/plugins/qmlprofiler/abstracttimelinemodel_p.h +++ b/src/plugins/qmlprofiler/abstracttimelinemodel_p.h @@ -37,6 +37,16 @@ namespace QmlProfiler { class QMLPROFILER_EXPORT AbstractTimelineModel::AbstractTimelineModelPrivate { public: + static const int DefaultRowHeight = 30; + + enum BoxColorProperties { + SelectionIdHueMultiplier = 25, + FractionHueMultiplier = 96, + FractionHueMininimum = 10, + Saturation = 150, + Lightness = 166 + }; + struct Range { Range() : start(-1), duration(-1), typeId(-1), parent(-1) {} Range(qint64 start, qint64 duration, int typeId) : @@ -102,6 +112,8 @@ public: return fromIndex; } + void _q_dataChanged(); + QVector<Range> ranges; QVector<RangeEnd> endTimes; |