mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 05:13:23 +00:00
Remove drag operations from the 'From' widget
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e3fbfe5498
commit
8a230f9145
2 changed files with 0 additions and 30 deletions
|
@ -100,32 +100,6 @@ void ColumnNameView::mousePressEvent(QMouseEvent *press)
|
|||
}
|
||||
}
|
||||
|
||||
void ColumnNameView::dragLeaveEvent(QDragLeaveEvent *leave)
|
||||
{
|
||||
}
|
||||
|
||||
void ColumnNameView::dragEnterEvent(QDragEnterEvent *event)
|
||||
{
|
||||
if(event->mimeData()->data(subsurface_mimedata).count())
|
||||
event->acceptProposedAction();
|
||||
}
|
||||
|
||||
void ColumnNameView::dragMoveEvent(QDragMoveEvent *event)
|
||||
{
|
||||
if (event->mimeData()->data(subsurface_mimedata).count())
|
||||
event->acceptProposedAction();
|
||||
}
|
||||
|
||||
void ColumnNameView::dropEvent(QDropEvent *event)
|
||||
{
|
||||
const QMimeData *mimeData = event->mimeData();
|
||||
if (mimeData->data(subsurface_mimedata).count()) {
|
||||
QVariant value = QString(mimeData->data(subsurface_mimedata));
|
||||
model()->insertRow(model()->rowCount());
|
||||
model()->setData(model()->index(model()->rowCount()-1, 0), value);
|
||||
}
|
||||
}
|
||||
|
||||
ColumnDropCSVView::ColumnDropCSVView(QWidget *parent)
|
||||
{
|
||||
setAcceptDrops(true);
|
||||
|
|
|
@ -49,10 +49,6 @@ public:
|
|||
ColumnNameView(QWidget *parent);
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *press);
|
||||
void dragLeaveEvent(QDragLeaveEvent *leave);
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
void dragMoveEvent(QDragMoveEvent *event);
|
||||
void dropEvent(QDropEvent *event);
|
||||
private:
|
||||
int currentDraggedIndex;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue