| 151 | } |
| 152 | |
| 153 | bool isInterestedInDragSource(const SourceDetails& dragSourceDetails) override { |
| 154 | if ( pgmListBox->readOnly ) |
| 155 | return false; |
| 156 | if ( ! pgmListBox->hasContent ) |
| 157 | return false; |
| 158 | |
| 159 | Component *comp = dragSourceDetails.sourceComponent.get(); |
| 160 | |
| 161 | if ( comp == this ) |
| 162 | return false; |
| 163 | if ( dynamic_cast<ProgramLabel*>(comp) == nullptr ) |
| 164 | return false; |
| 165 | |
| 166 | return true; |
| 167 | } |
| 168 | |
| 169 | void itemDragEnter(const SourceDetails &dragSourceDetails) override { |
| 170 | inDrag = true; |