diff --git a/ground/openpilotgcs/src/plugins/notify/notifytablemodel.cpp b/ground/openpilotgcs/src/plugins/notify/notifytablemodel.cpp index edabe164f..70e2dec09 100644 --- a/ground/openpilotgcs/src/plugins/notify/notifytablemodel.cpp +++ b/ground/openpilotgcs/src/plugins/notify/notifytablemodel.cpp @@ -174,16 +174,13 @@ Qt::DropActions NotifyTableModel::supportedDropActions() const return Qt::MoveAction; } -/* QStringList NotifyTableModel::mimeTypes() const { QStringList types; types << mime_type_notify_table; return types; } -*/ -/* bool NotifyTableModel::dropMimeData( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { @@ -242,9 +239,7 @@ bool NotifyTableModel::dropMimeData( const QMimeData * data, Qt::DropAction acti emit dataChanged(idxTopLeft, idxBotRight); return true; } -*/ -/* QMimeData* NotifyTableModel::mimeData(const QModelIndexList& indexes) const { QMimeData* mimeData = new QMimeData(); @@ -262,7 +257,6 @@ QMimeData* NotifyTableModel::mimeData(const QModelIndexList& indexes) const mimeData->setData(mime_type_notify_table, encodedData); return mimeData; } -*/ void NotifyTableModel::dropRows(int position, int count) const { diff --git a/ground/openpilotgcs/src/plugins/notify/notifytablemodel.h b/ground/openpilotgcs/src/plugins/notify/notifytablemodel.h index 1242624db..dd2e765bd 100644 --- a/ground/openpilotgcs/src/plugins/notify/notifytablemodel.h +++ b/ground/openpilotgcs/src/plugins/notify/notifytablemodel.h @@ -61,11 +61,11 @@ public: return QAbstractItemModel::flags(index) | Qt::ItemIsEditable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled; } - //QStringList mimeTypes() const; + QStringList mimeTypes() const; Qt::DropActions supportedDropActions() const; - //bool dropMimeData( const QMimeData * data, Qt::DropAction action, int row, - // int column, const QModelIndex& parent); - //QMimeData* mimeData(const QModelIndexList &indexes) const; + bool dropMimeData( const QMimeData * data, Qt::DropAction action, int row, + int column, const QModelIndex& parent); + QMimeData* mimeData(const QModelIndexList &indexes) const; bool setData(const QModelIndex &index, const QVariant &value, int role);