* Removes all the rows currently stored in the list. */
| 750 | * Removes all the rows currently stored in the list. |
| 751 | */ |
| 752 | void TextList::clearList() |
| 753 | { |
| 754 | for (std::vector< std::vector<Text*> >::iterator u = _texts.begin(); u < _texts.end(); ++u) |
| 755 | { |
| 756 | for (std::vector<Text*>::iterator v = u->begin(); v < u->end(); ++v) |
| 757 | { |
| 758 | delete (*v); |
| 759 | } |
| 760 | u->clear(); |
| 761 | } |
| 762 | _texts.clear(); |
| 763 | _rows.clear(); |
| 764 | _redraw = true; |
| 765 | } |
| 766 | |
| 767 | /** |
| 768 | * Scrolls the text in the list up by one row or to the top. |
no test coverage detected