MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / minimumSizeHint

Method minimumSizeHint

gui/src/plotwidget.cpp:498–498  ·  view source on GitHub ↗

NOTE: Hackish, but the QwtPlot::XAxis enforces a minimumSizeHint if the parent does not provide a strict max size. This means that this widget will always have the minimum size dicated by the XAxis and it cannot be changed. This would be ok, but the XAxix can always be smalled by reducing the number of segments (e.g. if it doesn't fit). This hack just lets the parent tell the XAxis to be smaller.

Source from the content-addressed store, hash-verified

496// but the XAxix can always be smalled by reducing the number of segments (e.g. if it
497// doesn't fit). This hack just lets the parent tell the XAxis to be smaller.
498QSize PlotWidget::minimumSizeHint() const { return QSize(0, 0); }
499
500#include "moc_plotwidget.cpp"

Callers 8

eventFilterMethod · 0.45
measure_panel_initMethod · 0.45
initForMeasurementMethod · 0.45
resizeTabWidgetMethod · 0.45
initMethod · 0.45
CapturePlotMethod · 0.45
updateLayoutMethod · 0.45
recomputeColCountMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected