forked from qt-creator/qt-creator
QmlProfiler: Provide a sane ctor for QmlEventType and use it
... in turn, make its members private, so that we don't accidentally change them. Change-Id: Ibc65b406ee341d33f69647ed1b19e1e34f5cd535 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -134,7 +134,7 @@ QVariantMap SceneGraphTimelineModel::details(int index) const
|
||||
void SceneGraphTimelineModel::loadEvent(const QmlEvent &event, const QmlEventType &type)
|
||||
{
|
||||
// combine the data of several eventtypes into two rows
|
||||
switch ((SceneGraphFrameType)type.detailType) {
|
||||
switch ((SceneGraphFrameType)type.detailType()) {
|
||||
case SceneGraphRendererFrame: {
|
||||
// Breakdown of render times. We repeat "render" here as "net" render time. It would
|
||||
// look incomplete if that was left out as the printf profiler lists it, too, and people
|
||||
|
||||
Reference in New Issue
Block a user