More robust legend rendering in Well Log Plots

This commit is contained in:
Gaute Lindkvist
2019-11-28 18:23:15 +01:00
parent 01be3f3c74
commit c6bb4414c5
4 changed files with 63 additions and 9 deletions

View File

@@ -24,8 +24,15 @@ class RiuQwtPlotLegend : public QwtLegend
Q_OBJECT
public:
RiuQwtPlotLegend( QWidget* parent = nullptr );
void resizeEvent( QResizeEvent* event );
int columnCount() const;
void resizeEvent( QResizeEvent* event );
int columnCount() const;
QSize sizeHint() const override;
public slots:
void updateLegend( const QVariant&, const QList<QwtLegendData>& ) override;
signals:
void legendUpdated();
private:
mutable int m_columnCount;