2014-09-26 15:49:49 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2014-09-26 15:49:49 +02:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2014-09-26 15:49:49 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2014-09-26 15:49:49 +02:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2014-09-26 15:49:49 +02:00
|
|
|
|
|
|
|
|
#include "qmlprofilermodelmanager.h"
|
2016-04-26 12:26:46 +02:00
|
|
|
#include "qmlnote.h"
|
2014-12-10 12:53:49 +01:00
|
|
|
#include "timeline/timelinenotesmodel.h"
|
2014-09-26 15:49:49 +02:00
|
|
|
#include <QList>
|
|
|
|
|
#include <QHash>
|
|
|
|
|
|
|
|
|
|
namespace QmlProfiler {
|
2014-12-09 11:01:23 +01:00
|
|
|
class QMLPROFILER_EXPORT QmlProfilerNotesModel : public Timeline::TimelineNotesModel {
|
2014-09-26 15:49:49 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2014-10-27 17:41:22 +01:00
|
|
|
QmlProfilerNotesModel(QObject *parent);
|
2014-09-26 15:49:49 +02:00
|
|
|
|
|
|
|
|
void loadData();
|
|
|
|
|
void saveData();
|
|
|
|
|
|
2016-04-26 12:26:46 +02:00
|
|
|
const QVector<QmlNote> ¬es() const;
|
|
|
|
|
void setNotes(const QVector<QmlNote> ¬es);
|
|
|
|
|
void clear();
|
|
|
|
|
|
2014-09-26 15:49:49 +02:00
|
|
|
protected:
|
2016-04-26 12:26:46 +02:00
|
|
|
QVector<QmlNote> m_notes;
|
2014-09-26 15:49:49 +02:00
|
|
|
|
|
|
|
|
int add(int typeId, qint64 startTime, qint64 duration, const QString &text);
|
|
|
|
|
};
|
2014-12-09 11:01:23 +01:00
|
|
|
} // namespace QmlProfiler
|