1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +00:00
OpenMW/apps/opencs/view/world/nestedtable.hpp

43 lines
740 B
C++
Raw Normal View History

2014-06-29 21:12:31 +02:00
#ifndef CSV_WORLD_NESTEDTABLE_H
#define CSV_WORLD_NESTEDTABLE_H
2014-06-29 21:12:31 +02:00
#include <QTableView>
#include <QtGui/qevent.h>
class QUndoStack;
class QAction;
namespace CSMWorld
{
class NestedTableModel;
class UniversalId;
}
namespace CSMDoc
{
class Document;
2014-06-29 21:12:31 +02:00
}
namespace CSVWorld
{
class NestedTable : public QTableView
{
Q_OBJECT
QAction *mAddNewRowAction;
QAction *mRemoveRowAction;
public:
NestedTable(QUndoStack& undoStack,
CSMWorld::NestedTableModel* model,
QWidget* parent = NULL);
2014-06-29 21:12:31 +02:00
protected:
void dragEnterEvent(QDragEnterEvent *event);
void dragMoveEvent(QDragMoveEvent *event);
};
}
#endif