forked from qt-creator/qt-creator
Remove extra clear() on loadData()
Change-Id: Ibe0bdc58efaccd28ffc4d4e923a085092ec722e5 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -81,7 +81,6 @@ int InputEventsModel::collapsedRow(int index) const
|
|||||||
|
|
||||||
void InputEventsModel::loadData()
|
void InputEventsModel::loadData()
|
||||||
{
|
{
|
||||||
clear();
|
|
||||||
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
||||||
if (simpleModel->isEmpty())
|
if (simpleModel->isEmpty())
|
||||||
return;
|
return;
|
||||||
|
@@ -144,7 +144,6 @@ struct RangeStackFrame {
|
|||||||
|
|
||||||
void MemoryUsageModel::loadData()
|
void MemoryUsageModel::loadData()
|
||||||
{
|
{
|
||||||
clear();
|
|
||||||
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
||||||
if (simpleModel->isEmpty())
|
if (simpleModel->isEmpty())
|
||||||
return;
|
return;
|
||||||
|
@@ -162,7 +162,6 @@ QVariantMap PixmapCacheModel::details(int index) const
|
|||||||
|
|
||||||
void PixmapCacheModel::loadData()
|
void PixmapCacheModel::loadData()
|
||||||
{
|
{
|
||||||
clear();
|
|
||||||
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
||||||
if (simpleModel->isEmpty())
|
if (simpleModel->isEmpty())
|
||||||
return;
|
return;
|
||||||
|
@@ -129,7 +129,6 @@ QVariantMap SceneGraphTimelineModel::details(int index) const
|
|||||||
|
|
||||||
void SceneGraphTimelineModel::loadData()
|
void SceneGraphTimelineModel::loadData()
|
||||||
{
|
{
|
||||||
clear();
|
|
||||||
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
QmlProfilerDataModel *simpleModel = modelManager()->qmlModel();
|
||||||
if (simpleModel->isEmpty())
|
if (simpleModel->isEmpty())
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user