]> git.cworth.org Git - apitrace/blobdiff - gui/graphing/timeaxiswidget.h
Rewrote profile graph drawing code.
[apitrace] / gui / graphing / timeaxiswidget.h
diff --git a/gui/graphing/timeaxiswidget.h b/gui/graphing/timeaxiswidget.h
new file mode 100644 (file)
index 0000000..836651c
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef TIMEAXISWIDGET_H
+#define TIMEAXISWIDGET_H
+
+#include "graphaxiswidget.h"
+
+/**
+ * A simple axis that draws text using getTimeString to nicely format time values
+ */
+class TimeAxisWidget : public GraphAxisWidget {
+public:
+    TimeAxisWidget(QWidget* parent = 0);
+
+    virtual void paintEvent(QPaintEvent *e);
+};
+
+#endif