aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilerviewmanager.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-12-14 13:40:23 +0100
committerUlf Hermann <ulf.hermann@qt.io>2016-12-15 10:26:41 +0000
commitbba13048176014cd6ff5b66cab388ef677d35aaf (patch)
tree9bf745ad9e185897f6204c0160718f6417010c4b /src/plugins/qmlprofiler/qmlprofilerviewmanager.h
parent02dd37d30a73fee1afffb0fd3dd7c183a5700d03 (diff)
QmlProfiler: Add functions to check if timeline view is usable
We can only use the timeline view if the scene graph is rendered via OpenGL. This can be checked from Qt 5.8 on by querying the RendererInterface. Earlier versions of Qt can only render with OpenGL. Change-Id: I3f77e2a4dee1f9a1df5d6b1946cf7eb05a1bad01 Task-number: QTCREATORBUG-16503 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerviewmanager.h')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerviewmanager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerviewmanager.h b/src/plugins/qmlprofiler/qmlprofilerviewmanager.h
index e7b5d9ee947..b6010ef589f 100644
--- a/src/plugins/qmlprofiler/qmlprofilerviewmanager.h
+++ b/src/plugins/qmlprofiler/qmlprofilerviewmanager.h
@@ -53,6 +53,7 @@ public:
bool isEventsRestrictedToRange() const;
void restrictEventsToRange(qint64 rangeStart, qint64 rangeEnd);
+ bool isTimelineUsable() const;
void raiseTimeline();
public slots: