mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
OP-834 restored "dead" code that was commented out by mistake
This commit is contained in:
parent
6d75dd0c6f
commit
538723696a
@ -174,16 +174,13 @@ Qt::DropActions NotifyTableModel::supportedDropActions() const
|
|||||||
return Qt::MoveAction;
|
return Qt::MoveAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
QStringList NotifyTableModel::mimeTypes() const
|
QStringList NotifyTableModel::mimeTypes() const
|
||||||
{
|
{
|
||||||
QStringList types;
|
QStringList types;
|
||||||
types << mime_type_notify_table;
|
types << mime_type_notify_table;
|
||||||
return types;
|
return types;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
bool NotifyTableModel::dropMimeData( const QMimeData * data, Qt::DropAction action, int row,
|
bool NotifyTableModel::dropMimeData( const QMimeData * data, Qt::DropAction action, int row,
|
||||||
int column, const QModelIndex& parent)
|
int column, const QModelIndex& parent)
|
||||||
{
|
{
|
||||||
@ -242,9 +239,7 @@ bool NotifyTableModel::dropMimeData( const QMimeData * data, Qt::DropAction acti
|
|||||||
emit dataChanged(idxTopLeft, idxBotRight);
|
emit dataChanged(idxTopLeft, idxBotRight);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
QMimeData* NotifyTableModel::mimeData(const QModelIndexList& indexes) const
|
QMimeData* NotifyTableModel::mimeData(const QModelIndexList& indexes) const
|
||||||
{
|
{
|
||||||
QMimeData* mimeData = new QMimeData();
|
QMimeData* mimeData = new QMimeData();
|
||||||
@ -262,7 +257,6 @@ QMimeData* NotifyTableModel::mimeData(const QModelIndexList& indexes) const
|
|||||||
mimeData->setData(mime_type_notify_table, encodedData);
|
mimeData->setData(mime_type_notify_table, encodedData);
|
||||||
return mimeData;
|
return mimeData;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
void NotifyTableModel::dropRows(int position, int count) const
|
void NotifyTableModel::dropRows(int position, int count) const
|
||||||
{
|
{
|
||||||
|
@ -61,11 +61,11 @@ public:
|
|||||||
|
|
||||||
return QAbstractItemModel::flags(index) | Qt::ItemIsEditable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled;
|
return QAbstractItemModel::flags(index) | Qt::ItemIsEditable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled;
|
||||||
}
|
}
|
||||||
//QStringList mimeTypes() const;
|
QStringList mimeTypes() const;
|
||||||
Qt::DropActions supportedDropActions() const;
|
Qt::DropActions supportedDropActions() const;
|
||||||
//bool dropMimeData( const QMimeData * data, Qt::DropAction action, int row,
|
bool dropMimeData( const QMimeData * data, Qt::DropAction action, int row,
|
||||||
// int column, const QModelIndex& parent);
|
int column, const QModelIndex& parent);
|
||||||
//QMimeData* mimeData(const QModelIndexList &indexes) const;
|
QMimeData* mimeData(const QModelIndexList &indexes) const;
|
||||||
|
|
||||||
|
|
||||||
bool setData(const QModelIndex &index, const QVariant &value, int role);
|
bool setData(const QModelIndex &index, const QVariant &value, int role);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user