mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:23:25 +00:00
Implement most of the drag operation
Only thing missing is the Drop. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4e7bd86e07
commit
7d53299831
1 changed files with 7 additions and 4 deletions
|
@ -121,22 +121,25 @@ void ColumnNameView::dropEvent(QDropEvent *event)
|
|||
|
||||
ColumnDropCSVView::ColumnDropCSVView(QWidget *parent)
|
||||
{
|
||||
|
||||
setAcceptDrops(true);
|
||||
}
|
||||
|
||||
void ColumnDropCSVView::dragLeaveEvent(QDragLeaveEvent *leave)
|
||||
{
|
||||
|
||||
Q_UNUSED(leave);
|
||||
}
|
||||
|
||||
void ColumnDropCSVView::dragEnterEvent(QDragEnterEvent *event)
|
||||
{
|
||||
|
||||
event->acceptProposedAction();
|
||||
}
|
||||
|
||||
void ColumnDropCSVView::dragMoveEvent(QDragMoveEvent *event)
|
||||
{
|
||||
|
||||
QModelIndex curr = indexAt(event->pos());
|
||||
if (!curr.isValid() || curr.row() != 0)
|
||||
return;
|
||||
event->acceptProposedAction();
|
||||
}
|
||||
|
||||
void ColumnDropCSVView::dropEvent(QDropEvent *event)
|
||||
|
|
Loading…
Add table
Reference in a new issue