Added ResizeColumnToPreferred() and ResizeAllColumnsToPreferred().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30684 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-05-09 18:48:01 +00:00
parent d571c5835d
commit 3688802f19
2 changed files with 16 additions and 0 deletions

View File

@ -68,3 +68,17 @@ AbstractTable::AddColumn(TableColumn* column)
BColumnListView::AddColumn(privateColumn, column->ModelIndex());
}
void
AbstractTable::ResizeColumnToPreferred(int32 index)
{
BColumnListView::ResizeColumnToPreferred(index);
}
void
AbstractTable::ResizeAllColumnsToPreferred()
{
BColumnListView::ResizeAllColumnsToPreferred();
}

View File

@ -30,6 +30,8 @@ public:
BView* ToView() { return this; }
virtual void AddColumn(TableColumn* column);
void ResizeColumnToPreferred(int32 index);
void ResizeAllColumnsToPreferred();
protected:
class AbstractColumn;