FactDev  0.1
unitcombodelegate.h
1 #ifndef UNITCOMBOBOXDELEGATE_H
2 #define UNITCOMBOBOXDELEGATE_H
3 #include <QWidget>
4 #include <QComboBox>
5 #include "gui/widgets/delegates/comboboxdelegate.h"
6 
7 namespace Gui {
8 namespace Widgets {
9 namespace Delegates {
10 
15 {
16  Q_OBJECT
17 
18 public:
23  UnitComboDelegate(QObject* parent=0);
24 
34  QWidget *createEditor(QWidget *parent,
35  const QStyleOptionViewItem &option,
36  const QModelIndex &index) const;
37 
46  void paint(QPainter *painter,
47  const QStyleOptionViewItem &option,
48  const QModelIndex &index) const;
49 
50 };
51 
52 }
53 }
54 }
55 #endif // UNITCOMBOBOXDELEGATE_H
UnitComboDelegate(QObject *parent=0)
UnitComboDelegate::UnitComboDelegate.
Definition: unitcombodelegate.cpp:7
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
UnitComboDelegate::createEditor Return a ComboBox specified by index item defined by the parent widge...
Definition: unitcombodelegate.cpp:12
The UnitComboDelegate class.
Definition: unitcombodelegate.h:14
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
UnitComboDelegate::paint Renders the delegate using the given painter and style option for the item s...
Definition: unitcombodelegate.cpp:26
The ComboBoxDelegate class.
Definition: comboboxdelegate.h:15