| 5480 | } |
| 5481 | |
| 5482 | void EventBrowser::GetMaxNameLength(int &maxNameLength, int indent, bool firstchild, |
| 5483 | const QModelIndex &idx) |
| 5484 | { |
| 5485 | QString nameString = GetExportString(indent, firstchild, idx); |
| 5486 | |
| 5487 | maxNameLength = qMax(maxNameLength, nameString.count()); |
| 5488 | |
| 5489 | firstchild = true; |
| 5490 | |
| 5491 | for(int i = 0, rowCount = idx.model()->rowCount(idx); i < rowCount; i++) |
| 5492 | { |
| 5493 | GetMaxNameLength(maxNameLength, indent + 1, firstchild, idx.child(i, COL_NAME)); |
| 5494 | firstchild = false; |
| 5495 | } |
| 5496 | } |
| 5497 | |
| 5498 | void EventBrowser::ExportAction(QTextStream &writer, int maxNameLength, int indent, bool firstchild, |
| 5499 | const QModelIndex &idx) |