1 #ifndef ARGUMENTSEDITOR_H
2 #define ARGUMENTSEDITOR_H
4 #include "ui_argumentseditor.h"
6 #include <QItemEditorFactory>
7 #include <QStandardItemModel>
12 class BooleanComboBox : public QComboBox
15 Q_PROPERTY(bool value READ value WRITE setValue USER true)
17 BooleanComboBox(QWidget *parent);
22 class ArgumentsItemEditorFactory : public QItemEditorFactory
25 ArgumentsItemEditorFactory();
26 QWidget *createEditor(QVariant::Type type, QWidget *parent) const;
27 QByteArray valuePropertyName(QVariant::Type) const;
30 class ArgumentsEditor : public QWidget
34 ArgumentsEditor(QWidget *parent=0);
38 void setCall(ApiTraceCall *call);
39 ApiTraceCall *call() const;
42 void currentSourceChanged(int idx);
47 void setupShaderEditor(const QList<QVariant> &sources);
49 Ui_ArgumentsEditor m_ui;
50 QStandardItemModel *m_model;