forked from qt-creator/qt-creator
QmlProfiler: Rename QmlProfilerNotesModel::add()
The parent class has a public add() method which has to be qualified if the child class has a protected one. Change-Id: I6d61d6123618fc0b5065893656b36559aa5298be Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -32,7 +32,8 @@ QmlProfilerNotesModel::QmlProfilerNotesModel(QObject *parent) : TimelineNotesMod
|
||||
{
|
||||
}
|
||||
|
||||
int QmlProfilerNotesModel::add(int typeId, qint64 start, qint64 duration, const QString &text)
|
||||
int QmlProfilerNotesModel::addQmlNote(int typeId, qint64 start, qint64 duration,
|
||||
const QString &text)
|
||||
{
|
||||
int timelineModel = -1;
|
||||
int timelineIndex = -1;
|
||||
@@ -66,7 +67,7 @@ void QmlProfilerNotesModel::loadData()
|
||||
TimelineNotesModel::clear();
|
||||
for (int i = 0; i != m_notes.size(); ++i) {
|
||||
const QmlNote ¬e = m_notes[i];
|
||||
add(note.typeIndex, note.startTime, note.duration, note.text);
|
||||
addQmlNote(note.typeIndex, note.startTime, note.duration, note.text);
|
||||
}
|
||||
resetModified();
|
||||
blockSignals(false);
|
||||
|
||||
@@ -47,6 +47,6 @@ public:
|
||||
protected:
|
||||
QVector<QmlNote> m_notes;
|
||||
|
||||
int add(int typeId, qint64 startTime, qint64 duration, const QString &text);
|
||||
int addQmlNote(int typeId, qint64 startTime, qint64 duration, const QString &text);
|
||||
};
|
||||
} // namespace QmlProfiler
|
||||
|
||||
Reference in New Issue
Block a user