More robust legend rendering in Well Log Plots

This commit is contained in:
Gaute Lindkvist committed 2019-11-28 18:23:57 +01:00
1 parent 01be3f3c74
commit c6bb4414c5
4 files changed
+63 -9

No files matched your search

@@ -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;