| 978 | } |
| 979 | |
| 980 | int selectedItemNumber() const |
| 981 | { |
| 982 | int i=0; |
| 983 | QListViewItem* c = firstChild(); |
| 984 | while (c) { |
| 985 | if (c == selectedItem()) { |
| 986 | return i; |
| 987 | } |
| 988 | i++; |
| 989 | c = c->nextSibling(); |
| 990 | } |
| 991 | return -1; |
| 992 | } |
| 993 | |
| 994 | void setSelectedItemNumber(int i) |
| 995 | { |
no outgoing calls
no test coverage detected