QmlProfiler: Move timeline classes into own namespace

The new namespace "Timeline" is for classes that are supposed to go to
the generic timeline library later.

Change-Id: I1f6dce59de2c37398b1ed89473e1a94ec020104b
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-12-09 11:01:23 +01:00
parent c86efd2179
commit 516c0d6020
30 changed files with 86 additions and 107 deletions

View File

@@ -46,7 +46,7 @@ int QmlProfilerNotesModel::add(int typeId, qint64 start, qint64 duration, const
{
int timelineModel = -1;
int timelineIndex = -1;
foreach (const TimelineModel *model, timelineModels()) {
foreach (const Timeline::TimelineModel *model, timelineModels()) {
if (model->handlesTypeId(typeId)) {
for (int i = model->firstIndex(start); i <= model->lastIndex(start + duration); ++i) {
if (i < 0)
@@ -89,7 +89,7 @@ void QmlProfilerNotesModel::saveData()
{
QVector<QmlProfilerDataModel::QmlEventNoteData> notes;
for (int i = 0; i < count(); ++i) {
const TimelineModel *model = timelineModelByModelId(timelineModel(i));
const Timeline::TimelineModel *model = timelineModelByModelId(timelineModel(i));
if (!model)
continue;