pqNonEditableStyledItemDelegate() can be used inside Table or TreeView as ItemDelegate to make them Copy/Paste friendly. More...
#include <pqNonEditableStyledItemDelegate.h>
Inherits QStyledItemDelegate.
Public Member Functions | |
pqNonEditableStyledItemDelegate (QObject *parent=nullptr) | |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
pqNonEditableStyledItemDelegate() can be used inside Table or TreeView as ItemDelegate to make them Copy/Paste friendly.
Basically it will allow the user to enter in edit mode but without having the option to change the content so the content can only be selected and Copy to the clipboard.
Definition at line 19 of file pqNonEditableStyledItemDelegate.h.
pqNonEditableStyledItemDelegate::pqNonEditableStyledItemDelegate | ( | QObject * | parent = nullptr | ) |
|
override |