| 140 | ~ProcessListWidget(); |
| 141 | |
| 142 | uint32_t GetSelectedPid() |
| 143 | { |
| 144 | QModelIndexList sel = selectionModel()->selectedIndexes(); |
| 145 | if (sel.empty() || !sel[0].isValid()) |
| 146 | return 0; |
| 147 | |
| 148 | auto sourceIndex = m_filter->mapToSource(sel[0]); |
| 149 | if (!sourceIndex.isValid()) |
| 150 | return 0; |
| 151 | |
| 152 | auto processItem = m_model->getRow(sourceIndex.row()); |
| 153 | return processItem.pid(); |
| 154 | } |
| 155 | |
| 156 | void updateColumnWidths(); |
| 157 |