RemoveItems() implementation was missing; more or less copied the one from BListView
(which is slow, but works). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20573 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f2893088ba
commit
b754aa3dbd
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2001-2006, Haiku Inc.
|
||||
* Copyright 2001-2007, Haiku Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
|
@ -282,11 +282,19 @@ BOutlineListView::RemoveItem(int32 fullIndex)
|
|||
|
||||
|
||||
bool
|
||||
BOutlineListView::RemoveItems(int32 fullListIndex, int32 count)
|
||||
BOutlineListView::RemoveItems(int32 fullIndex, int32 count)
|
||||
{
|
||||
printf("BOutlineListView::RemoveItems Not implemented\n");
|
||||
if (fullIndex >= FullListCountItems())
|
||||
fullIndex = -1;
|
||||
if (fullIndex < 0)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
// TODO: very bad for performance!!
|
||||
while (count--) {
|
||||
BOutlineListView::RemoveItem(fullIndex);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue