|
|
|
@ -2416,7 +2416,7 @@ void Basket::contentsMouseMoveEvent(TQMouseEvent *event)
|
|
|
|
|
m_selectionStarted = false;
|
|
|
|
|
NoteSelection *selection = selectedNotes();
|
|
|
|
|
if (selection && selection->firstStacked()) {
|
|
|
|
|
TQDragObject *d = NoteDrag::dragObject(selection, /*cutting=*/false, /*source=*/this); // d will be deleted by QT
|
|
|
|
|
TQDragObject *d = NoteDrag::dragObject(selection, /*cutting=*/false, /*source=*/this); // d will be deleted by TQt
|
|
|
|
|
/*bool shouldRemove = */d->drag();
|
|
|
|
|
// delete selection;
|
|
|
|
|
|
|
|
|
@ -4205,10 +4205,10 @@ void Basket::doCopy(CopyMode copyMode)
|
|
|
|
|
NoteSelection *selection = selectedNotes();
|
|
|
|
|
int countCopied = countSelecteds();
|
|
|
|
|
if (selection && selection->firstStacked()) {
|
|
|
|
|
TQDragObject *d = NoteDrag::dragObject(selection, copyMode == CutToClipboard, /*source=*/0); // d will be deleted by QT
|
|
|
|
|
TQDragObject *d = NoteDrag::dragObject(selection, copyMode == CutToClipboard, /*source=*/0); // d will be deleted by TQt
|
|
|
|
|
// /*bool shouldRemove = */d->drag();
|
|
|
|
|
// delete selection;
|
|
|
|
|
cb->setData(d, mode); // NoteMultipleDrag will be deleted by QT
|
|
|
|
|
cb->setData(d, mode); // NoteMultipleDrag will be deleted by TQt
|
|
|
|
|
// if (copyMode == CutToClipboard && !note->useFile()) // If useFile(), NoteDrag::dragObject() will delete it TODO
|
|
|
|
|
// note->slotDelete();
|
|
|
|
|
|
|
|
|
|