Wireshark 4.7.0
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
 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
parentOptional parent QObject.

Member Function Documentation

◆ lessThan()

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

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

Parameters
source_leftIndex of the left-hand item in the source model.
source_rightIndex 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: