Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LuaDbgWatchValueColumnDelegate Class Reference

Value column: elide middle; no editor. More...

#include <lua_debugger_watch.h>

Inheritance diagram for LuaDbgWatchValueColumnDelegate:

Public Member Functions

void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Custom paint method to elide text in the middle.
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Blocks editor creation by returning a null pointer.
 

Detailed Description

Value column: elide middle; no editor.

Member Function Documentation

◆ createEditor()

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

Blocks editor creation by returning a null pointer.

Parameters
parentThe parent widget.
optionThe style option used for the item.
indexThe model index of the item.
Returns
nullptr to prevent editing.

◆ paint()

void LuaDbgWatchValueColumnDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Custom paint method to elide text in the middle.

Parameters
painterThe painter to use.
optionThe style option used for the item.
indexThe model index of the item.

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