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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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
{
Q_OBJECT
2015-06-21 14:16:13 +00:00
CSMWorld::ColumnBase::Display mDropType;
///< The accepted Display type for this LineEdit.
public:
2020-11-13 07:39:47 +00:00
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