[ 1541434 ] wxListView::IsSelected should be const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,7 +97,7 @@ Returns the next selected item or $-1$ if there are no more of them.
|
|||||||
|
|
||||||
\membersection{wxListView::IsSelected}\label{wxlistviewisselected}
|
\membersection{wxListView::IsSelected}\label{wxlistviewisselected}
|
||||||
|
|
||||||
\func{bool}{IsSelected}{\param{long }{index}}
|
\constfunc{bool}{IsSelected}{\param{long }{index}}
|
||||||
|
|
||||||
Returns {\tt true} if the item with the given {\it index} is selected,
|
Returns {\tt true} if the item with the given {\it index} is selected,
|
||||||
{\tt false} otherwise.
|
{\tt false} otherwise.
|
||||||
|
@@ -86,7 +86,7 @@ public:
|
|||||||
{ return GetNextSelected(-1); }
|
{ return GetNextSelected(-1); }
|
||||||
|
|
||||||
// return true if the item is selected
|
// return true if the item is selected
|
||||||
bool IsSelected(long index)
|
bool IsSelected(long index) const
|
||||||
{ return GetItemState(index, wxLIST_STATE_SELECTED) != 0; }
|
{ return GetItemState(index, wxLIST_STATE_SELECTED) != 0; }
|
||||||
|
|
||||||
// columns
|
// columns
|
||||||
|
Reference in New Issue
Block a user