define SetAsSortKey/IsSortKey() in wxMac wxDataViewColumn
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -967,6 +967,24 @@ void wxDataViewColumn::SetWidth(int width)
|
||||
}
|
||||
}
|
||||
|
||||
void wxDataViewColumn::SetAsSortKey(bool WXUNUSED(sort))
|
||||
{
|
||||
// see wxGTK native wxDataViewColumn implementation
|
||||
wxFAIL_MSG( "not implemented" );
|
||||
}
|
||||
|
||||
bool wxDataViewColumn::IsSortKey() const
|
||||
{
|
||||
wxDataViewCtrl * const dataViewCtrlPtr(GetOwner());
|
||||
wxMacDataViewDataBrowserListViewControlPointer macDataViewListCtrlPtr(
|
||||
dynamic_cast<wxMacDataViewDataBrowserListViewControlPointer>(
|
||||
dataViewCtrlPtr->GetPeer()));
|
||||
|
||||
DataBrowserPropertyID propertyID;
|
||||
return macDataViewListCtrlPtr->GetSortProperty(&propertyID) == noErr &&
|
||||
propertyID == m_propertyID;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxDataViewCtrl
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user