Show wxDataViewCheckIconTextRenderer in the sample

Instead of using separate check and icon+text columns in the list model
page, use the combined check+icon+text column to verify that it works
(which is not the case current in the native Mac version).
This commit is contained in:
Vadim Zeitlin
2019-12-15 19:17:10 +01:00
parent 2e71e14dc4
commit 334ff40716
3 changed files with 28 additions and 43 deletions

View File

@@ -208,9 +208,8 @@ class MyListModel: public wxDataViewVirtualListModel
public:
enum
{
Col_Toggle,
Col_ToggleIconText,
Col_EditableText,
Col_IconText,
Col_Date,
Col_TextWithAttr,
Col_Custom,
@@ -236,11 +235,8 @@ public:
virtual wxString GetColumnType( unsigned int col ) const wxOVERRIDE
{
if (col == Col_Toggle)
return "bool";
if (col == Col_IconText)
return "wxDataViewIconText";
if (col == Col_ToggleIconText)
return wxDataViewCheckIconTextRenderer::GetDefaultType();
return "string";
}