Test returning invalid value from GetValue() in dataview sample

Add an item with unspecified year and update the custom model GetValue()
to not return anything in this case to check, and confirm, that all
implementations handle this properly by simply not showing anything in
the cell in this case.
This commit is contained in:
Vadim Zeitlin
2021-12-01 02:24:45 +01:00
parent 74e1c444fa
commit 0c944ff5be
2 changed files with 18 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ class MyMusicTreeModelNode
public:
MyMusicTreeModelNode( MyMusicTreeModelNode* parent,
const wxString &title, const wxString &artist,
unsigned int year )
int year )
{
m_parent = parent;