X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fargumentseditor.h;h=e6b3d8fd65f01043ad5072787d0a622a18a90d44;hb=a26cf3eea71454aa5cc466a2abbe01537c95c31c;hp=7bfd1b3196dc54c5d49d68616328493c420f5b32;hpb=8c832b707f0daade8e2bef0315bd08eb457552dd;p=apitrace diff --git a/gui/argumentseditor.h b/gui/argumentseditor.h index 7bfd1b3..e6b3d8f 100644 --- a/gui/argumentseditor.h +++ b/gui/argumentseditor.h @@ -45,15 +45,19 @@ public: private slots: void currentSourceChanged(int idx); void sourceChanged(); + void revert(); private: void init(); void setupCall(); void setupShaderEditor(const QList &sources); QVariant valueForName(const QString &name, - const QVariant &orignalValue) const; + const QVariant &orignalValue, + bool *changed) const; QVariant arrayFromIndex(const QModelIndex &index, - const ApiArray &array) const; - QVariant arrayFromEditor(const ApiArray &origArray) const; + const ApiArray &array, + bool *changed) const; + QVariant arrayFromEditor(const ApiArray &origArray, + bool *changed) const; private: Ui_ArgumentsEditor m_ui; QStandardItemModel *m_model;