File: DropTableWidget.cpp

package info (click to toggle)
launchy 2.5-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,532 kB
  • sloc: cpp: 11,735; sh: 162; makefile: 45
file content (32 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "DropTableWidget.h"
#include <QDragEnterEvent>


DropTableWidget::DropTableWidget(QWidget* pParent) :
	QTableWidget(pParent)
{
	setAcceptDrops(true);
}


DropTableWidget::~DropTableWidget()
{
}


void DropTableWidget::dragEnterEvent(QDragEnterEvent *event)
{
	emit dragEnter(event);
}


void DropTableWidget::dragMoveEvent(QDragMoveEvent *event)
{
	emit dragMove(event);
}


void DropTableWidget::dropEvent(QDropEvent *event)
{
	emit drop(event);
}