Project

General

Profile

Actions

Feature #3814

closed

Add unsetDraggable() to WInteractWidget?

Added by Anonymous almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
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;

}

Actions #1

Updated by Benoit Daccache over 9 years ago

  • Target version changed from 3.3.4 to 3.3.5
Actions #2

Updated by Benoit Daccache over 9 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Koen Deforche over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF