mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
41 lines
845 B
C++
41 lines
845 B
C++
#ifndef CSV_WIDGET_DROPLINEEDIT_HPP
|
|
#define CSV_WIDGET_DROPLINEEDIT_HPP
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include "../../model/world/columnbase.hpp"
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Document;
|
|
}
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class UniversalId;
|
|
}
|
|
|
|
namespace CSVWidget
|
|
{
|
|
class DropLineEdit : public QLineEdit
|
|
{
|
|
Q_OBJECT
|
|
|
|
CSMWorld::ColumnBase::Display mDropType;
|
|
///< The accepted Display type for this LineEdit.
|
|
|
|
public:
|
|
DropLineEdit(CSMWorld::ColumnBase::Display type, QWidget* parent = nullptr);
|
|
|
|
protected:
|
|
void dragEnterEvent(QDragEnterEvent* event) override;
|
|
void dragMoveEvent(QDragMoveEvent* event) override;
|
|
void dropEvent(QDropEvent* event) override;
|
|
|
|
signals:
|
|
void tableMimeDataDropped(const CSMWorld::UniversalId& id, const CSMDoc::Document* document);
|
|
};
|
|
}
|
|
|
|
#endif
|