mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5416 Set minimum size hint for plot widgets to 0, 0
This commit is contained in:
@@ -76,7 +76,7 @@ RiuQwtPlotWidget::RiuQwtPlotWidget( RimPlot* plotDefinition, QWidget* parent )
|
|||||||
this->installEventFilter( this );
|
this->installEventFilter( this );
|
||||||
this->canvas()->installEventFilter( this );
|
this->canvas()->installEventFilter( this );
|
||||||
|
|
||||||
this->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding );
|
this->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -649,6 +649,22 @@ void RiuQwtPlotWidget::applyAxisTitleToQwt( QwtPlot::Axis axis )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
QSize RiuQwtPlotWidget::sizeHint() const
|
||||||
|
{
|
||||||
|
return QSize( 0, 0 );
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
QSize RiuQwtPlotWidget::minimumSizeHint() const
|
||||||
|
{
|
||||||
|
return QSize( 0, 0 );
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
/// Empty default implementation
|
/// Empty default implementation
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -138,6 +138,9 @@ protected:
|
|||||||
void applyPlotTitleToQwt();
|
void applyPlotTitleToQwt();
|
||||||
void applyAxisTitleToQwt( QwtPlot::Axis axis );
|
void applyAxisTitleToQwt( QwtPlot::Axis axis );
|
||||||
|
|
||||||
|
QSize sizeHint() const override;
|
||||||
|
QSize minimumSizeHint() const override;
|
||||||
|
|
||||||
virtual void selectPoint( QwtPlotCurve* curve, int pointNumber );
|
virtual void selectPoint( QwtPlotCurve* curve, int pointNumber );
|
||||||
virtual void clearPointSelection();
|
virtual void clearPointSelection();
|
||||||
virtual bool isZoomerActive() const;
|
virtual bool isZoomerActive() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user