diff options
Diffstat (limited to 'examples/widgets/widgets/icons/imagedelegate.h')
-rw-r--r-- | examples/widgets/widgets/icons/imagedelegate.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/examples/widgets/widgets/icons/imagedelegate.h b/examples/widgets/widgets/icons/imagedelegate.h deleted file mode 100644 index 29707e68c6..0000000000 --- a/examples/widgets/widgets/icons/imagedelegate.h +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#ifndef IMAGEDELEGATE_H -#define IMAGEDELEGATE_H - -#include <QStyledItemDelegate> - -//! [0] -class ImageDelegate : public QStyledItemDelegate -{ - Q_OBJECT - -public: - explicit ImageDelegate(QObject *parent = nullptr); -//! [0] - -//! [1] - QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, - const QModelIndex &index) const override; - void setEditorData(QWidget *editor, const QModelIndex &index) const override; - void setModelData(QWidget *editor, QAbstractItemModel *model, - const QModelIndex &index) const override; - -//! [1] //! [2] -private slots: - void emitCommitData(); -//! [2] -}; - -#endif |