From 9b9b1c8f99b3c8a82fafc418c4332d770f6a7603 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 23 Jan 2020 15:46:16 -0800 Subject: [PATCH] Ensure that the correct signature is used for GetValue and GetValueByRow virtual overrides --- etg/dataview.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etg/dataview.py b/etg/dataview.py index 706ebc41..dba6a5ad 100644 --- a/etg/dataview.py +++ b/etg/dataview.py @@ -109,7 +109,7 @@ def run(): # Change the GetValue method to return the value instead of passing it # through a parameter for modification. c.find('GetValue.variant').out = True - + c.find('GetValue').cppSignature = 'void (wxVariant& variant, const wxDataViewItem& item, unsigned int col)' # The DataViewItemObjectMapper class helps map from data items to Python # objects, and is used as a base class of PyDataViewModel as a @@ -195,6 +195,7 @@ def run(): # Change the GetValueByRow method to return the value instead of passing # it through a parameter for modification. c.find('GetValueByRow.variant').out = True + c.find('GetValueByRow').cppSignature = 'void (wxVariant& variant, unsigned int row, unsigned int col)' # declare implementations for base class virtuals c.addItem(etgtools.WigCode("""\ @@ -539,6 +540,8 @@ def run(): c.find('PrependItem.values').type = 'const wxVariantVector&' c.find('InsertItem.values').type = 'const wxVariantVector&' c.find('GetValueByRow.value').out = True + c.find('GetValueByRow').cppSignature = 'void (wxVariant& value, unsigned int row, unsigned int col)' + c.addAutoProperties()