mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add skeleton code for the table view that will accepts drops
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cedf339e1e
commit
aa33ae9526
3 changed files with 44 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <QAbstractListModel>
|
||||
#include <QListView>
|
||||
#include <QDragLeaveEvent>
|
||||
#include <QTableView>
|
||||
|
||||
#include "../dive.h"
|
||||
#include "../divelist.h"
|
||||
|
@ -40,6 +41,19 @@ private:
|
|||
int currentDraggedIndex;
|
||||
};
|
||||
|
||||
class ColumnDropCSVView : public QTableView {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ColumnDropCSVView(QWidget *parent);
|
||||
protected:
|
||||
void dragLeaveEvent(QDragLeaveEvent *leave);
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
void dragMoveEvent(QDragMoveEvent *event);
|
||||
void dropEvent(QDropEvent *event);
|
||||
private:
|
||||
QStringList columns;
|
||||
};
|
||||
|
||||
class DiveLogImportDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue