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:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2001-2006, Haiku Inc.
|
* Copyright 2001-2007, Haiku Inc.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -282,11 +282,19 @@ BOutlineListView::RemoveItem(int32 fullIndex)
|
|||||||
|
|
||||||
|
|
||||||
bool
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user