| 83 | } |
| 84 | |
| 85 | void FocusedTreeView::fitColumns() |
| 86 | { |
| 87 | if (!model()) { |
| 88 | return; |
| 89 | } |
| 90 | |
| 91 | for (int c = 0, columnCount = model()->columnCount(); c < columnCount; ++c) { |
| 92 | resizeColumnToContents(c); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | void FocusedTreeView::resizeEvent(QResizeEvent* event) |
| 97 | { |
no test coverage detected