| Wireshark 4.7.3 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

  parent | The parent widget.
  option | The style option used for the item.
  index | The 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

  painter | The painter to use.
  option | The style option used for the item.
  index | The model index of the item.

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

- /builds/wireshark/wireshark/ui/qt/lua_debugger/lua_debugger_watch.h
- /builds/wireshark/wireshark/ui/qt/lua_debugger/lua_debugger_watch.cpp