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:
@@ -539,7 +539,7 @@ typedef wxDataViewTextRenderer wxDataViewDateRenderer;
|
|||||||
// wxDataViewCheckIconTextRenderer: 3-state checkbox + text + optional icon
|
// wxDataViewCheckIconTextRenderer: 3-state checkbox + text + optional icon
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef __WXOSX__
|
#if defined(wxHAS_GENERIC_DATAVIEWCTRL) || !defined(__WXOSX__)
|
||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxDataViewCheckIconTextRenderer
|
class WXDLLIMPEXP_CORE wxDataViewCheckIconTextRenderer
|
||||||
: public wxDataViewCustomRenderer
|
: public wxDataViewCustomRenderer
|
||||||
@@ -591,7 +591,7 @@ private:
|
|||||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewCheckIconTextRenderer);
|
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewCheckIconTextRenderer);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !__WXOSX__
|
#endif // ! native __WXOSX__
|
||||||
|
|
||||||
// this class is obsolete, its functionality was merged in
|
// this class is obsolete, its functionality was merged in
|
||||||
// wxDataViewTextRenderer itself now, don't use it any more
|
// wxDataViewTextRenderer itself now, don't use it any more
|
||||||
|
@@ -2004,7 +2004,7 @@ wxSize wxDataViewDateRenderer::GetSize() const
|
|||||||
// wxDataViewCheckIconTextRenderer implementation
|
// wxDataViewCheckIconTextRenderer implementation
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef __WXOSX__
|
#if defined(wxHAS_GENERIC_DATAVIEWCTRL) || !defined(__WXOSX__)
|
||||||
|
|
||||||
IMPLEMENT_VARIANT_OBJECT_EXPORTED(wxDataViewCheckIconText, WXDLLIMPEXP_ADV)
|
IMPLEMENT_VARIANT_OBJECT_EXPORTED(wxDataViewCheckIconText, WXDLLIMPEXP_ADV)
|
||||||
|
|
||||||
@@ -2196,7 +2196,7 @@ wxSize wxDataViewCheckIconTextRenderer::GetCheckSize() const
|
|||||||
return wxRendererNative::Get().GetCheckBoxSize(GetView());
|
return wxRendererNative::Get().GetCheckBoxSize(GetView());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // !__WXOSX__
|
#endif // ! native __WXOSX__
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// wxDataViewListStore
|
// wxDataViewListStore
|
||||||
|
Reference in New Issue
Block a user