| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
VoipCallsInfoSortedModel Class Reference

Sort proxy model for VoipCallsInfoModel that provides column-aware comparisons, handling numeric and duration columns correctly. More...

`#include <voip_calls_info_model.h>`

Inheritance diagram for VoipCallsInfoSortedModel:

## Public Member Functions
| VoipCallsInfoSortedModel (QObject *parent=0)
| Constructs the sort proxy model.

## Protected Member Functions
bool | lessThan (const QModelIndex &source_left, const QModelIndex &source_right) const override
| Compares two rows for sorting, using type-appropriate comparisons for numeric, duration, and string columns.

## Detailed Description

Sort proxy model for VoipCallsInfoModel that provides column-aware comparisons, handling numeric and duration columns correctly.

## Constructor & Destructor Documentation

## ◆ VoipCallsInfoSortedModel()

VoipCallsInfoSortedModel::VoipCallsInfoSortedModel | ( | QObject * | parent = 0 | ) |

Constructs the sort proxy model.

Parameters

  parent | Optional parent QObject.

## Member Function Documentation

## ◆ lessThan()

bool VoipCallsInfoSortedModel::lessThan | ( | const QModelIndex & | source_left,
|  | const QModelIndex & | source_right ) const
| override protected

Compares two rows for sorting, using type-appropriate comparisons for numeric, duration, and string columns.

Parameters

  source_left | Index of the left-hand item in the source model.
  source_right | Index of the right-hand item in the source model.

Returns
  `true` if `source_left` should sort before `source_right`.

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

- /builds/wireshark/wireshark/ui/qt/models/voip_calls_info_model.h
- /builds/wireshark/wireshark/ui/qt/models/voip_calls_info_model.cpp