]> git.cworth.org Git - apitrace/blobdiff - gui/apitracecall.h
Set a parent trace on all the frames.
[apitrace] / gui / apitracecall.h
index 3bf4c644a61673f4ca8f09a1ad75d66f5390f3d5..0f395a5b501b17a7103695b121770bf68196d2be 100644 (file)
@@ -11,6 +11,8 @@
 #include "trace_model.hpp"
 
 
+class ApiTrace;
+
 class VariantVisitor : public Trace::Visitor
 {
 public:
@@ -202,8 +204,13 @@ public:
     int number;
     QList<ApiTraceCall*> calls;
 
+    ApiTrace *parentTrace() const;
+    void setParentTrace(ApiTrace *trace);
+
     int numChildren() const;
     QStaticText staticText() const;
+private:
+    ApiTrace *m_parentTrace;
 };
 Q_DECLARE_METATYPE(ApiTraceFrame*);