Public Member Functions | List of all members
pqNonEditableStyledItemDelegate Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ pqNonEditableStyledItemDelegate()

pqNonEditableStyledItemDelegate::pqNonEditableStyledItemDelegate ( QObject *  parent = nullptr)

Member Function Documentation

◆ createEditor()

QWidget* pqNonEditableStyledItemDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

The documentation for this class was generated from the following file: