1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-24 23:23:54 +00:00
openmw/apps/opencs/view/widget/droplineedit.hpp

41 lines
845 B
C++
Raw Normal View History

#ifndef CSV_WIDGET_DROPLINEEDIT_HPP
#define CSV_WIDGET_DROPLINEEDIT_HPP
#include <QLineEdit>
#include "../../model/world/columnbase.hpp"
namespace CSMDoc
{
class Document;
}
namespace CSMWorld
{
2015-06-21 14:16:13 +00:00
class UniversalId;
}
namespace CSVWidget
{
class DropLineEdit : public QLineEdit
{
2022-09-22 18:26:05 +00:00
Q_OBJECT
2022-09-22 18:26:05 +00:00
CSMWorld::ColumnBase::Display mDropType;
///< The accepted Display type for this LineEdit.
2022-09-22 18:26:05 +00:00
public:
DropLineEdit(CSMWorld::ColumnBase::Display type, QWidget* parent = nullptr);
2022-09-22 18:26:05 +00:00
protected:
void dragEnterEvent(QDragEnterEvent* event) override;
void dragMoveEvent(QDragMoveEvent* event) override;
void dropEvent(QDropEvent* event) override;
2022-09-22 18:26:05 +00:00
signals:
void tableMimeDataDropped(const CSMWorld::UniversalId& id, const CSMDoc::Document* document);
};
}
#endif