Fix wxDataViewCtrl compilation when wxUSE_SPINCTRL==0
Just don't define wxDataViewSpinRenderer in this case.
This commit is contained in:
committed by
Vadim Zeitlin
parent
154ebfd1d9
commit
9dd48eab61
@@ -358,6 +358,8 @@ private:
|
||||
#error "unknown native wxDataViewCtrl implementation"
|
||||
#endif
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxDataViewSpinRenderer
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -381,6 +383,8 @@ private:
|
||||
long m_min,m_max;
|
||||
};
|
||||
|
||||
#endif // wxUSE_SPINCTRL
|
||||
|
||||
#if defined(wxHAS_GENERIC_DATAVIEWCTRL) || defined(__WXOSX_CARBON__)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -1569,6 +1569,7 @@ wxDEFINE_EVENT( wxEVT_DATAVIEW_ITEM_DROP_POSSIBLE, wxDataViewEvent );
|
||||
wxDEFINE_EVENT( wxEVT_DATAVIEW_ITEM_DROP, wxDataViewEvent );
|
||||
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
// -------------------------------------
|
||||
// wxDataViewSpinRenderer
|
||||
@@ -1638,6 +1639,8 @@ bool wxDataViewSpinRenderer::GetValue( wxVariant &value ) const
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif // wxUSE_SPINCTRL
|
||||
|
||||
// -------------------------------------
|
||||
// wxDataViewChoiceRenderer
|
||||
// -------------------------------------
|
||||
|
Reference in New Issue
Block a user