| 67 | } |
| 68 | |
| 69 | std::pair<Uint64, std::string> ProcessesModel::getProcess( const ModelIndex& index ) const { |
| 70 | if ( !index.isValid() ) |
| 71 | return {}; |
| 72 | Lock l( mResourceLock ); |
| 73 | if ( mFilter.empty() ) { |
| 74 | return mProcesses[index.row()]; |
| 75 | } |
| 76 | return { mProcessesFiltered[index.row()].first, |
| 77 | std::string{ mProcessesFiltered[index.row()].second } }; |
| 78 | } |
| 79 | |
| 80 | } // namespace ecode |
no test coverage detected