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=0)
 
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 47 of file pqNonEditableStyledItemDelegate.h.

Constructor & Destructor Documentation

◆ pqNonEditableStyledItemDelegate()

pqNonEditableStyledItemDelegate::pqNonEditableStyledItemDelegate ( QObject *  parent = 0)

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: