OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
colordelegate.hpp
Go to the documentation of this file.
1 #ifndef CSV_WORLD_COLORDELEGATE_HPP
2 #define CSV_WORLD_COLORDELEGATE_HPP
3 
4 #include "util.hpp"
5 
6 class QRect;
7 
8 namespace CSVWidget
9 {
10  class ColorEditButton;
11 }
12 
13 namespace CSVWorld
14 {
16  {
17  public:
19  CSMDoc::Document& document,
20  QObject *parent);
21 
22  virtual void paint(QPainter *painter,
23  const QStyleOptionViewItem &option,
24  const QModelIndex &index) const;
25  };
26 
28  {
29  public:
31  CSMDoc::Document &document,
32  QObject *parent) const;
34  };
35 }
36 
37 #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: colordelegate.cpp:29
Definition: colordelegate.hpp:27
Definition: commanddispatcher.hpp:20
Definition: colordelegate.hpp:15
Definition: util.hpp:99
Definition: document.hpp:57
ColorDelegate(CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent)
Definition: colordelegate.cpp:8
Definition: util.hpp:53
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: colordelegate.cpp:14