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:
Axel Dörfler 2007-04-05 11:16:43 +00:00
parent f2893088ba
commit b754aa3dbd
1 changed files with 12 additions and 4 deletions

View File

@ -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;
}