aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-10-29 10:41:27 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2014-11-21 10:54:43 +0100
commit7956b176e6944a44896aa13ebe896a0b451b4964 (patch)
treed64d5d21076e164fd1d1fe3babd015ea76970190 /src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp
parent91cb52d40b0f4d3483a7a6ac36803ea1b55ee77c (diff)
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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp b/src/plugins/qmlprofiler/qmlprofileranimationsmodel.cpp
index 1cb139baa81..534d7f06b2c 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")));