Little enableDropOnWidget() fix

preferencesAboutTextFull
Ivan Ilin 13 years ago
parent b79f1f8d60
commit d1613ddb8c
  1. 4
      src/api/UBWidgetUniboardAPI.cpp
  2. 2
      src/api/UBWidgetUniboardAPI.h

@ -465,9 +465,9 @@ void UBWidgetUniboardAPI::sendFileMetadata(QString metaData)
UBApplication::boardController->displayMetaData(qmMetaDatas); UBApplication::boardController->displayMetaData(qmMetaDatas);
} }
void UBWidgetUniboardAPI::enableDropOnWidget() void UBWidgetUniboardAPI::enableDropOnWidget(bool enable)
{ {
mGraphicsWidget->setAcceptDrops(true); mGraphicsWidget->setAcceptDrops(enable);
} }
void UBWidgetUniboardAPI::ProcessDropEvent(QDropEvent *event) void UBWidgetUniboardAPI::ProcessDropEvent(QDropEvent *event)

@ -240,7 +240,7 @@ class UBWidgetUniboardAPI : public QObject
/** /**
* If the widget support a the drop of an object it will notify sankore about this. * If the widget support a the drop of an object it will notify sankore about this.
*/ */
void enableDropOnWidget (); void enableDropOnWidget (bool enable = true);
/** /**
* When an object is dropped on a widget, this one send us the informations to download it locally. * When an object is dropped on a widget, this one send us the informations to download it locally.

Loading…
Cancel
Save