MCPcopy Create free account
hub / github.com/asb2m10/dexed / isInterestedInDragSource

Method isInterestedInDragSource

Source/ProgramListBox.h:153–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected