| 228 | } |
| 229 | |
| 230 | QRect DirectoryListDelegate::getDeleteButtonRect(const QStyleOptionViewItem &option) const |
| 231 | { |
| 232 | QFont font = option.font; |
| 233 | const QFontMetrics fm(font); |
| 234 | int btnY = option.rect.top() + MARGIN + (fm.height() - BUTTON_SIZE) / 2; |
| 235 | return QRect(option.rect.left() + 2 * MARGIN + BUTTON_SIZE, btnY, BUTTON_SIZE, BUTTON_SIZE); |
| 236 | } |
| 237 | |
| 238 | bool DirectoryListDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
| 239 | { |
nothing calls this directly
no outgoing calls
no test coverage detected