summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/muse/widgets/pctable.h
blob: c8ba53bf800ecd421f5629669aea66b3d454cf05 (plain)
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
#ifndef _PCTABLE_
#define _PCTABLE_

#include <QTableView>
#include <QDropEvent>
#include <QMouseEvent>
#include <QDragEnterEvent>
#include <QDragMoveEvent>
#include <QPaintEvent>
#include <QList>

class ProgramChangeTable : public QTableView
{
	Q_OBJECT
    virtual void dragEnterEvent(QDragEnterEvent*);
    virtual void dragMoveEvent(QDragMoveEvent*);
	virtual void paintEvent(QPaintEvent*);
	QRect dropSite;

	signals:
		void rowOrderChanged();

	public:
		ProgramChangeTable(QWidget *parent = 0);
		void dropEvent(QDropEvent *evt);
		void mousePressEvent(QMouseEvent* evt);

	public slots:
		QList<int> getSelectedRows();
};
#endif