Opened 14 years ago

Closed 14 years ago

#6403 closed enhancement (fixed)

BLayout::ItemAdded() should return a bool, and accept an int32 index param, as should BLayout::ItemRemoved

Reported by: yourpalal Owned by: yourpalal
Priority: normal Milestone:
Component: Kits/Interface Kit Version: R1/Development
Keywords: layout Cc:
Blocked By: Blocking: #5524
Platform: All

Description

void BLayout::ItemAdded(BLayoutItem* item) should become: bool BLayout::ItemAdded(BLayoutItem* item, int32 atIndex);

and void BLayout::ItemRemoved(BLayoutItem* item), should become void BLayout::ItemRemoved(BLayoutItem* item, int32 fromIndex);

BLayout::AddItem(...) should be modified to reverse the addition if ItemAdded() returns false.

Change History (3)

comment:1 by yourpalal, 14 years ago

Status: newin-progress

comment:2 by yourpalal, 14 years ago

Blocking: 5524 added

comment:3 by yourpalal, 14 years ago

Resolution: fixed
Status: in-progressclosed

fixed in hrev37817.

Note: See TracTickets for help on using tickets.