Sort proxy model for VoipCallsInfoModel that provides column-aware comparisons, handling numeric and duration columns correctly.
More...
#include <voip_calls_info_model.h>
|
| 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.
|
| |
Sort proxy model for VoipCallsInfoModel that provides column-aware comparisons, handling numeric and duration columns correctly.
◆ VoipCallsInfoSortedModel()
| VoipCallsInfoSortedModel::VoipCallsInfoSortedModel |
( |
QObject * |
parent = 0 | ) |
|
Constructs the sort proxy model.
- Parameters
-
| parent | Optional parent QObject. |
◆ 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_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