summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2013-12-09 12:23:23 +0100
committerUlf Hermann <ulf.hermann@digia.com>2013-12-12 11:17:25 +0200
commiteb4c101f9b345c032c732edf58f5447c35f0f678 (patch)
tree335a09581c16dbdf19e98cd29359ab5cd9278a1f /plugins
parent6627792f06eb5d50d4cc4a859720c53abac944c3 (diff)
downloadqt-creator-eb4c101f9b345c032c732edf58f5447c35f0f678.tar.gz
Use dataChanged() implementation from abstract timeline model
No need to repeat the same code multiple times. Change-Id: Ibe6865458c7ae47cc32f03cdc493ada320def584 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/qmlprofilerextension/pixmapcachemodel.cpp14
-rw-r--r--plugins/qmlprofilerextension/pixmapcachemodel.h9
-rw-r--r--plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp17
-rw-r--r--plugins/qmlprofilerextension/scenegraphtimelinemodel.h9
4 files changed, 0 insertions, 49 deletions
diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp
index ff77f8f962..f4168c8340 100644
--- a/plugins/qmlprofilerextension/pixmapcachemodel.cpp
+++ b/plugins/qmlprofilerextension/pixmapcachemodel.cpp
@@ -485,20 +485,6 @@ void PixmapCacheModel::clear()
m_modelManager->modelProxyCountUpdated(m_modelId, 0, 1);
}
-void PixmapCacheModel::dataChanged()
-{
- if (m_modelManager->state() == QmlProfilerDataState::ProcessingData)
- loadData();
-
- if (m_modelManager->state() == QmlProfilerDataState::Empty)
- clear();
-
- emit stateChanged();
- emit dataAvailable();
- emit emptyChanged();
- emit expandedChanged();
-}
-
void PixmapCacheModel::PixmapCacheModelPrivate::computeCacheSizes()
{
minCacheSize = -1;
diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.h b/plugins/qmlprofilerextension/pixmapcachemodel.h
index 8ac8d42218..d3ec01db3a 100644
--- a/plugins/qmlprofilerextension/pixmapcachemodel.h
+++ b/plugins/qmlprofilerextension/pixmapcachemodel.h
@@ -103,15 +103,6 @@ public:
void loadData();
void clear();
-//signals:
-// void countChanged();
-// void dataAvailable();
-// void stateChanged();
-// void emptyChanged();
-// void expandedChanged();
-
-protected slots:
- void dataChanged();
private:
class PixmapCacheModelPrivate;
diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp
index a7100fa61e..bfd9613091 100644
--- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp
+++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp
@@ -428,22 +428,5 @@ void SceneGraphTimelineModel::clear()
m_modelManager->modelProxyCountUpdated(m_modelId, 0, 1);
}
-void SceneGraphTimelineModel::dataChanged()
-{
- if (m_modelManager->state() == QmlProfilerDataState::ProcessingData)
- loadData();
-
- if (m_modelManager->state() == QmlProfilerDataState::Empty)
- clear();
-
- emit stateChanged();
- emit dataAvailable();
- emit emptyChanged();
- emit expandedChanged();
-}
-
-
-
-
} // namespace Internal
} // namespace QmlProfilerExtension
diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h
index 299eea5b76..1f283af290 100644
--- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.h
+++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.h
@@ -89,15 +89,6 @@ public:
void loadData();
void clear();
-//signals:
-// void countChanged();
-// void dataAvailable();
-// void stateChanged();
-// void emptyChanged();
-// void expandedChanged();
-
-protected slots:
- void dataChanged();
private:
class SceneGraphTimelineModelPrivate;