| 191 | |
| 192 | |
| 193 | QSize ProcessItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& idx) const |
| 194 | { |
| 195 | auto totalWidth = (idx.data(Qt::SizeHintRole).toInt() + 2) * m_charWidth + 4; |
| 196 | return QSize(totalWidth, m_charHeight + 2); |
| 197 | } |
| 198 | |
| 199 | |
| 200 | ProcessListFilterProxyModel::ProcessListFilterProxyModel(QObject* parent) : QSortFilterProxyModel(parent) |