diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-10-29 10:41:27 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2014-11-21 10:54:43 +0100 |
commit | 7956b176e6944a44896aa13ebe896a0b451b4964 (patch) | |
tree | d64d5d21076e164fd1d1fe3babd015ea76970190 /src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp | |
parent | 91cb52d40b0f4d3483a7a6ac36803ea1b55ee77c (diff) | |
download | qt-creator-7956b176e6944a44896aa13ebe896a0b451b4964.tar.gz |
QmlProfiler: remove useless checks from labels() methods
The view should check if it needs the labels before requesting them.
Change-Id: I935259e91337202224af7890d0617e1b12dd922a
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp index 1cb139baa8..534d7f06b2 100644 --- a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp @@ -186,7 +186,7 @@ QVariantList QmlProfilerAnimationsModel::labels() const { QVariantList result; - if (!hidden() && m_maxGuiThreadAnimations > 0) { + if (m_maxGuiThreadAnimations > 0) { QVariantMap element; element.insert(QLatin1String("displayName"), QVariant(tr("Animations"))); element.insert(QLatin1String("description"), QVariant(tr("GUI Thread"))); @@ -194,7 +194,7 @@ QVariantList QmlProfilerAnimationsModel::labels() const result << element; } - if (!hidden() && m_maxRenderThreadAnimations > 0) { + if (m_maxRenderThreadAnimations > 0) { QVariantMap element; element.insert(QLatin1String("displayName"), QVariant(tr("Animations"))); element.insert(QLatin1String("description"), QVariant(tr("Render Thread"))); |