OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
droplineedit.hpp
Go to the documentation of this file.
1 #ifndef CSV_WIDGET_DROPLINEEDIT_HPP
2 #define CSV_WIDGET_DROPLINEEDIT_HPP
3 
4 #include <QLineEdit>
5 
6 #include "../../model/world/columnbase.hpp"
7 
8 namespace CSMDoc
9 {
10  class Document;
11 }
12 
13 namespace CSMWorld
14 {
15  class TableMimeData;
16  class UniversalId;
17 }
18 
19 namespace CSVWidget
20 {
21  class DropLineEdit : public QLineEdit
22  {
23  Q_OBJECT
24 
27 
28  public:
30 
31  protected:
32  void dragEnterEvent(QDragEnterEvent *event);
33  void dragMoveEvent(QDragMoveEvent *event);
34  void dropEvent(QDropEvent *event);
35 
36  signals:
37  void tableMimeDataDropped(const CSMWorld::UniversalId &id, const CSMDoc::Document *document);
38  };
39 }
40 
41 #endif
static const struct @2 signals[]
Display
Definition: columnbase.hpp:39
CSMWorld::ColumnBase::Display mDropType
The accepted Display type for this LineEdit.
Definition: droplineedit.hpp:25
void tableMimeDataDropped(const CSMWorld::UniversalId &id, const CSMDoc::Document *document)
Definition: droplineedit.hpp:21
void dragMoveEvent(QDragMoveEvent *event)
Definition: droplineedit.cpp:25
void dropEvent(QDropEvent *event)
Definition: droplineedit.cpp:33
Definition: document.hpp:57
void dragEnterEvent(QDragEnterEvent *event)
Definition: droplineedit.cpp:17
DropLineEdit(CSMWorld::ColumnBase::Display type, QWidget *parent=0)
Definition: droplineedit.cpp:10
Definition: universalid.hpp:12