From 2defdb7d4c97fc38d3d5f9621f91a80bd7c14062 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Wed, 14 Feb 2018 09:53:40 +0100 Subject: [PATCH] wxwidgets.cfg: Added more deprecated functions. --- cfg/wxwidgets.cfg | 43 ++++++++++++++++++++++++++++++++++++++++++ test/cfg/wxwidgets.cpp | 15 ++++++++++++++- 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index f15f4723c..b7e3cc6b9 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -1101,6 +1101,49 @@ This function is deprecated and kept mostly for backwards compatibility. Please override 'SetMargins()' method instead in any new code. + + + + false + + + + + + + + + + + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'wxDataViewCustomRenderer::ActivateCell()' method instead in any new code. + + + + + false + + + + + + + + + + + + + + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'wxDataViewCustomRenderer::ActivateCell()' method instead in any new code. + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 1db8076d3..529c020f4 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -16,6 +16,7 @@ #include #include #include +#include void validCode() { @@ -78,7 +79,19 @@ void uninitvar() wxLogMessage(pcUninit); } -void deprecatedFunctions(wxApp &a, const wxString &s, wxArtProvider *artProvider, wxCalendarCtrl &calenderCtrl, wxComboCtrl &comboCtrl) +void deprecatedFunctions_wxDataViewCustomRenderer(wxDataViewCustomRenderer &dataViewCustomRenderer, wxPoint cursor, wxRect cell, wxDataViewModel *model, const wxDataViewItem &item, unsigned int col) +{ + // cppcheck-suppress ActivateCalled + dataViewCustomRenderer.Activate(cell, model, item, col); + // cppcheck-suppress LeftClickCalled + dataViewCustomRenderer.LeftClick(cursor, cell, model, item, col); +} + +void deprecatedFunctions(wxApp &a, + const wxString &s, + wxArtProvider *artProvider, + wxCalendarCtrl &calenderCtrl, + wxComboCtrl &comboCtrl) { #ifdef __WXOSX__ // cppcheck-suppress MacOpenFileCalled