| 83 | } |
| 84 | |
| 85 | QStringList TreeView::getHeaderNames(const WidgetHeader which) const |
| 86 | { |
| 87 | QStringList header_labels; |
| 88 | for (int i = 0; i != columnCount(); ++i) |
| 89 | { |
| 90 | // do not export hidden columns |
| 91 | if (which == WidgetHeader::VISIBLE_ONLY && isColumnHidden(i)) |
| 92 | { |
| 93 | continue; |
| 94 | } |
| 95 | header_labels << getHeaderName(i); |
| 96 | } |
| 97 | return header_labels; |
| 98 | } |
| 99 | |
| 100 | /// get the displayed name of the header in column with index @p header_column |
| 101 | /// @throws Exception::ElementNotFound if header at index @p header_column is not valid |
no outgoing calls