Actions
Feature #3814
closedAdd unsetDraggable() to WInteractWidget?
Start date:
02/22/2015
Due date:
% Done:
0%
Estimated time:
Description
I've been using a local modification to WInteractWidget to allow dragging to be disabled. In some of my user interfaces (particularly the photo gallery software I'm working on right now), this is an essential feature. Could this possibly be added to the next release? My naive implementation is below.
Thanks so much! Wt is awesome!
In WInteractWidget:
/*! \brief Removes drag and drop.
- Disables drag&drop for this widget. This is useful in cases where
- you would like to disable dragging that was enabled via setDraggable(),
- or to change the dragging configuration.
*/
void unsetDraggable();
In WInteractWidget.C:
void WInteractWidget::unsetDraggable()
{
if (dragSlot_) {
mouseWentDown().disconnect(*dragSlot_);
delete dragSlot_;
dragSlot_ = 0;
}
return;
}
Updated by Benoit Daccache over 9 years ago
- Target version changed from 3.3.4 to 3.3.5
Updated by Koen Deforche over 9 years ago
- Status changed from Resolved to Closed
Actions