Removed superfluous TableModel::GetColumnName(). The TableColumns have a name,
anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30324 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3e9f9e8672
commit
7615c5eee5
@ -22,9 +22,6 @@ public:
|
||||
virtual int32 CountColumns() const = 0;
|
||||
virtual int32 CountRows() const = 0;
|
||||
|
||||
virtual void GetColumnName(int columnIndex,
|
||||
BString& name) const = 0;
|
||||
|
||||
virtual bool GetValueAt(int32 rowIndex, int32 columnIndex,
|
||||
Variant& value) = 0;
|
||||
};
|
||||
|
@ -34,33 +34,6 @@ public:
|
||||
return fModel->CountThreads();
|
||||
}
|
||||
|
||||
virtual void GetColumnName(int columnIndex, BString& name) const
|
||||
{
|
||||
switch (columnIndex) {
|
||||
case 0:
|
||||
name = "Thread";
|
||||
break;
|
||||
case 1:
|
||||
name = "Name";
|
||||
break;
|
||||
case 2:
|
||||
name = "Run Time";
|
||||
break;
|
||||
case 3:
|
||||
name = "Wait Time";
|
||||
break;
|
||||
case 4:
|
||||
name = "Latencies";
|
||||
break;
|
||||
case 5:
|
||||
name = "Preemptions";
|
||||
break;
|
||||
default:
|
||||
name = "<invalid>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
virtual bool GetValueAt(int32 rowIndex, int32 columnIndex, Variant& value)
|
||||
{
|
||||
Model::Thread* thread = fModel->ThreadAt(rowIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user