| 99 | } |
| 100 | |
| 101 | void ComponentPinDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| 102 | { |
| 103 | switch (index.column()) |
| 104 | { |
| 105 | case ComponentPinsItemModel::PinElecType: |
| 106 | case ComponentPinsItemModel::PinStyle: |
| 107 | { |
| 108 | QRect rect = option.rect; |
| 109 | if (rect.width() < 150) |
| 110 | rect.setWidth(150); |
| 111 | editor->setGeometry(rect); |
| 112 | break; |
| 113 | } |
| 114 | default: |
| 115 | QItemDelegate::updateEditorGeometry(editor, option, index); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | void ComponentPinDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| 120 | { |
nothing calls this directly
no outgoing calls
no test coverage detected