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

Model that routes drops to column 0 for watch reordering. More...

#include <lua_debugger_watch.h>

Inheritance diagram for LuaDbgWatchItemModel:

Protected Member Functions

bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
 Handles a drop event, forcing the target column to 0 to preserve watch item order.
 

Detailed Description

Model that routes drops to column 0 for watch reordering.

Member Function Documentation

◆ dropMimeData()

bool LuaDbgWatchItemModel::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
)
overrideprotected

Handles a drop event, forcing the target column to 0 to preserve watch item order.

Parameters
dataThe MIME data payload from the drag operation.
actionThe drop action being performed (e.g. move or copy).
rowThe row at which the data is being dropped, or -1 to append.
columnThe requested target column; overridden to 0 internally.
parentThe parent index under which the drop occurs.
Returns
True if the data was successfully handled, false otherwise.

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