diff options
Diffstat (limited to 'src/noeditdelegate.h')
| -rw-r--r-- | src/noeditdelegate.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/noeditdelegate.h b/src/noeditdelegate.h index 6fd5ba76..88d48aa4 100644 --- a/src/noeditdelegate.h +++ b/src/noeditdelegate.h @@ -1,12 +1,14 @@ -#ifndef NOEDITDELEGATE_H
-#define NOEDITDELEGATE_H
-
-#include <QStyledItemDelegate>
-
-class NoEditDelegate: public QStyledItemDelegate {
-public:
- NoEditDelegate(QObject *parent = nullptr);
- virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
-};
-
-#endif // NOEDITDELEGATE_H
+#ifndef NOEDITDELEGATE_H +#define NOEDITDELEGATE_H + +#include <QStyledItemDelegate> + +class NoEditDelegate : public QStyledItemDelegate +{ +public: + NoEditDelegate(QObject* parent = nullptr); + virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, + const QModelIndex& index) const; +}; + +#endif // NOEDITDELEGATE_H |
