OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
idcompletiondelegate.hpp
Go to the documentation of this file.
1 #ifndef CSV_WORLD_IDCOMPLETIONDELEGATE_HPP
2 #define CSV_WORLD_IDCOMPLETIONDELEGATE_HPP
3 
4 #include "util.hpp"
5 
6 namespace CSVWorld
7 {
10  {
11  public:
13  CSMDoc::Document& document,
14  QObject *parent);
15 
16  virtual QWidget *createEditor (QWidget *parent,
17  const QStyleOptionViewItem &option,
18  const QModelIndex &index) const;
19 
20  virtual QWidget *createEditor (QWidget *parent,
21  const QStyleOptionViewItem &option,
22  const QModelIndex &index,
23  CSMWorld::ColumnBase::Display display) const;
24  };
25 
27  {
28  public:
30  CSMDoc::Document& document,
31  QObject *parent) const;
33  };
34 }
35 
36 #endif
virtual CommandDelegate * makeDelegate(CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent) const
The ownership of the returned CommandDelegate is transferred to the caller.
Definition: idcompletiondelegate.cpp:87
Display
Definition: columnbase.hpp:39
IdCompletionDelegate(CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent)
Definition: idcompletiondelegate.cpp:8
Enables the Id completion for a column.
Definition: idcompletiondelegate.hpp:9
Definition: idcompletiondelegate.hpp:26
Definition: commanddispatcher.hpp:20
Definition: util.hpp:99
Definition: document.hpp:57
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: idcompletiondelegate.cpp:14
Definition: util.hpp:53