void RDSlotBox::dropEvent(QDropEvent *e) { unsigned cartnum; if(RDCartDrag::decode(e,&cartnum)) { emit cartDropped(cartnum); } }
void LogLineBox::dropEvent(QDropEvent *e) { RDLogLine ll; if(RDCartDrag::decode(e,&ll)) { emit cartDropped(log_line,&ll); } }
void RDPanelButton::dropEvent(QDropEvent *e) { unsigned cartnum; QColor color; QString title; if(RDCartDrag::decode(e,&cartnum,&color,&title)) { emit cartDropped(button_row,button_col,cartnum,color,title); } }
void DropListView::dropEvent(QDropEvent *e) { RDLogLine ll; int line=-1; QPoint pos(e->pos().x(),e->pos().y()-header()->sectionRect(0).height()); if(RDCartDrag::decode(e,&ll)) { RDListViewItem *item=(RDListViewItem *)itemAt(pos); if(item!=NULL) { line=item->text(14).toInt(); } emit cartDropped(line,&ll); } }
void ListLog::cartDroppedData(int line,RDLogLine *ll) { emit cartDropped(list_id,line,ll); }
void ButtonLog::cartDroppedData(int line,RDLogLine *ll) { emit cartDropped(log_id,line,ll); }