Fix build with generic wxDataViewCtrl under Mac
Generic wxDataViewCheckIconTextRenderer is needed under Mac too if the generic version of wxDVC is used. Closes #18632.
This commit is contained in:
parent
4203104d54
commit
24042b2a2a
@ -539,7 +539,7 @@ typedef wxDataViewTextRenderer wxDataViewDateRenderer;
|
||||
// wxDataViewCheckIconTextRenderer: 3-state checkbox + text + optional icon
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifndef __WXOSX__
|
||||
#if defined(wxHAS_GENERIC_DATAVIEWCTRL) || !defined(__WXOSX__)
|
||||
|
||||
class WXDLLIMPEXP_CORE wxDataViewCheckIconTextRenderer
|
||||
: public wxDataViewCustomRenderer
|
||||
@ -591,7 +591,7 @@ private:
|
||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewCheckIconTextRenderer);
|
||||
};
|
||||
|
||||
#endif // !__WXOSX__
|
||||
#endif // ! native __WXOSX__
|
||||
|
||||
// this class is obsolete, its functionality was merged in
|
||||
// wxDataViewTextRenderer itself now, don't use it any more
|
||||
|
@ -2004,7 +2004,7 @@ wxSize wxDataViewDateRenderer::GetSize() const
|
||||
// wxDataViewCheckIconTextRenderer implementation
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifndef __WXOSX__
|
||||
#if defined(wxHAS_GENERIC_DATAVIEWCTRL) || !defined(__WXOSX__)
|
||||
|
||||
IMPLEMENT_VARIANT_OBJECT_EXPORTED(wxDataViewCheckIconText, WXDLLIMPEXP_ADV)
|
||||
|
||||
@ -2196,7 +2196,7 @@ wxSize wxDataViewCheckIconTextRenderer::GetCheckSize() const
|
||||
return wxRendererNative::Get().GetCheckBoxSize(GetView());
|
||||
}
|
||||
|
||||
#endif // !__WXOSX__
|
||||
#endif // ! native __WXOSX__
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxDataViewListStore
|
||||
|
Loading…
Reference in New Issue
Block a user