]> git.saurik.com Git - wxWidgets.git/commitdiff
Use virtual items in wxDVC sample under Mac too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Oct 2009 01:02:31 +0000 (01:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Oct 2009 01:02:31 +0000 (01:02 +0000)
There doesn't seem to be any reason to not use them and having different
appearance under OS X and elsewhere is just confusing and looks like a bug.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dataview/mymodels.cpp

index 0424b2493693a06248b53b9f12b1d901e48ec74b..11ee266e4552e5f25cbf0abc3987b8190a6541f5 100644 (file)
@@ -322,11 +322,7 @@ static int my_sort( int *v1, int *v2 )
    return *v1-*v2;
 }
 
    return *v1-*v2;
 }
 
-#ifdef __WXMAC__
-    #define INITIAL_NUMBER_OF_ITEMS 100
-#else
-    #define INITIAL_NUMBER_OF_ITEMS 100000
-#endif
+#define INITIAL_NUMBER_OF_ITEMS 100000
 
 MyListModel::MyListModel() :
         wxDataViewVirtualListModel( INITIAL_NUMBER_OF_ITEMS )
 
 MyListModel::MyListModel() :
         wxDataViewVirtualListModel( INITIAL_NUMBER_OF_ITEMS )