added 'supportedDragActions' function to replace functionality provided by 'setSupportedDragActions' function (obsolete)

preferencesAboutTextFull
Craig Watson 9 years ago
parent c49d4ed7da
commit 4a99febbb0
  1. 1
      src/board/UBFeaturesController.cpp
  2. 2
      src/gui/UBFeaturesWidget.h

@ -346,7 +346,6 @@ UBFeaturesController::UBFeaturesController(QWidget *pParentWidget) :
scanFS();
featuresModel = new UBFeaturesModel(featuresList, this);
featuresModel->setSupportedDragActions(Qt::CopyAction | Qt::MoveAction);
featuresProxyModel = new UBFeaturesProxyModel(this);
featuresProxyModel->setFilterFixedString(rootPath);

@ -393,6 +393,8 @@ public:
void moveData(const UBFeature &source, const UBFeature &destination, Qt::DropAction action, bool deleteManualy = false);
Qt::DropActions supportedDropActions() const { return Qt::MoveAction | Qt::CopyAction; }
Qt::DropActions supportedDragActions() const { return Qt::MoveAction | Qt::CopyAction; }
// void setFeaturesList(QList <UBFeature> *flist ) { featuresList = flist; }
public slots:

Loading…
Cancel
Save