Qt
Core
pqNonEditableStyledItemDelegate.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3
// SPDX-License-Identifier: BSD-3-Clause
4
5
#ifndef pqNonEditableStyledItemDelegate_h
6
#define pqNonEditableStyledItemDelegate_h
7
8
#include "
pqCoreModule.h
"
9
10
#include <QStyledItemDelegate>
11
19
class
PQCORE_EXPORT
pqNonEditableStyledItemDelegate
:
public
QStyledItemDelegate
20
{
21
typedef
QStyledItemDelegate Superclass;
22
23
Q_OBJECT
24
25
public
:
26
pqNonEditableStyledItemDelegate
(QObject* parent =
nullptr
);
27
QWidget* createEditor(
28
QWidget* parent,
const
QStyleOptionViewItem& option,
const
QModelIndex&
index
)
const override
;
29
30
private
:
31
Q_DISABLE_COPY(
pqNonEditableStyledItemDelegate
)
32
};
33
34
#endif
pqCoreModule.h
pqNonEditableStyledItemDelegate
pqNonEditableStyledItemDelegate() can be used inside Table or TreeView as ItemDelegate to make them C...
Definition:
pqNonEditableStyledItemDelegate.h:19
PQCORE_EXPORT
#define PQCORE_EXPORT
Definition:
pqCoreModule.h:15
index
index
Generated by
1.8.13 on Tue Oct 1 2024