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

Custom QCPErrorBars class that disables selectability. More...

#include <tcp_stream_dialog.h>

Inheritance diagram for QCPErrorBarsNotSelectable:

Public Member Functions

 QCPErrorBarsNotSelectable (QCPAxis *keyAxis, QCPAxis *valueAxis)
 Constructs a new QCPErrorBarsNotSelectable instance.
 
virtual ~QCPErrorBarsNotSelectable ()
 Destroys the QCPErrorBarsNotSelectable instance.
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 Overrides the selectTest to always return -1, disabling selection.
 
virtual void drawLegendIcon (QCPPainter *painter, const QRectF &rect) const override
 Draws the legend icon for the error bars.
 

Detailed Description

Custom QCPErrorBars class that disables selectability.

Constructor & Destructor Documentation

◆ QCPErrorBarsNotSelectable()

QCPErrorBarsNotSelectable::QCPErrorBarsNotSelectable ( QCPAxis *  keyAxis,
QCPAxis *  valueAxis 
)
explicit

Constructs a new QCPErrorBarsNotSelectable instance.

Parameters
keyAxisThe key axis.
valueAxisThe value axis.

Member Function Documentation

◆ drawLegendIcon()

void QCPErrorBarsNotSelectable::drawLegendIcon ( QCPPainter *  painter,
const QRectF &  rect 
) const
overridevirtual

Draws the legend icon for the error bars.

Parameters
painterThe QCPPainter to draw with.
rectThe rectangle defining the icon bounds.

◆ selectTest()

double QCPErrorBarsNotSelectable::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Overrides the selectTest to always return -1, disabling selection.

Parameters
posThe position to test.
onlySelectableFlag indicating if only selectable items should be tested.
detailsOptional variant for details.
Returns
-1.0 indicating no selection.

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