]> git.cworth.org Git - apitrace/blobdiff - gui/apicalldelegate.h
some color in the list
[apitrace] / gui / apicalldelegate.h
diff --git a/gui/apicalldelegate.h b/gui/apicalldelegate.h
new file mode 100644 (file)
index 0000000..0329839
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef APICALLDELEGATE_H
+#define APICALLDELEGATE_H
+
+
+
+#include <QStyledItemDelegate>
+
+class ApiCallDelegate : public QStyledItemDelegate
+{
+    Q_OBJECT
+
+public:
+    ApiCallDelegate(QWidget *parent = 0);
+
+    void paint(QPainter *painter, const QStyleOptionViewItem &option,
+               const QModelIndex &index) const;
+    QSize sizeHint(const QStyleOptionViewItem &option,
+                   const QModelIndex &index) const;
+};
+
+#endif