Fix legend update and remove Qt warnings

This commit is contained in:
Gaute Lindkvist
2019-10-04 10:26:55 +02:00
parent 09388b22c8
commit 10e55d3e5f
2 changed files with 31 additions and 23 deletions

View File

@@ -36,14 +36,10 @@ class RimWellLogPlot;
class RiuWellLogTrack;
class QFocusEvent;
class QLabel;
class QScrollBar;
class QwtLegend;
namespace caf
{
class QShortenedLabel;
}
//==================================================================================================
//
// RiuWellLogPlot
@@ -78,7 +74,9 @@ protected:
void contextMenuEvent( QContextMenuEvent* ) override;
void keyPressEvent( QKeyEvent* keyEvent ) override;
caf::QShortenedLabel* createTitleLabel() const;
QLabel* createTitleLabel() const;
void resizeEvent( QResizeEvent* event ) override;
private:
void updateScrollBar( double minDepth, double maxDepth );
@@ -94,7 +92,7 @@ protected:
QPointer<QHBoxLayout> m_plotLayout;
QPointer<QFrame> m_trackFrame;
QPointer<QGridLayout> m_trackLayout;
QPointer<caf::QShortenedLabel> m_plotTitle;
QPointer<QLabel> m_plotTitle;
QPointer<QVBoxLayout> m_scrollBarLayout;
QScrollBar* m_scrollBar;
QList<QPointer<QwtLegend>> m_legends;