| 89 | } |
| 90 | |
| 91 | virtual Variant data( const ModelIndex& index, ModelRole role = ModelRole::Display ) const override { |
| 92 | if ( !index.isValid() ) |
| 93 | return {}; |
| 94 | if ( role == ModelRole::Display ) { |
| 95 | Node* node = static_cast<Node*>( index.internalData() ); |
| 96 | return Variant( *node->text ); |
| 97 | } |
| 98 | return {}; |
| 99 | } |
| 100 | |
| 101 | void filter( const std::string_view& filterText ) { |
| 102 | if ( filterText.empty() ) { |
nothing calls this directly
no test coverage detected