From 490a823fb09e6d0bb835138967f6e92263e049af Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 17 Sep 2015 12:30:24 +0200 Subject: [PATCH] (#440) Minimum height and width of plot set to 0 --- .../UserInterface/RiuWellLogTracePlot.cpp | 16 ++++++++++++++++ .../UserInterface/RiuWellLogTracePlot.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp b/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp index 138cca895b..e7e1e9a498 100644 --- a/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp @@ -256,3 +256,19 @@ void RiuWellLogTracePlot::selectClosestCurve(const QPoint& pos) } } } + +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +QSize RiuWellLogTracePlot::sizeHint() const +{ + return QSize(0, 0); +} + +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- +QSize RiuWellLogTracePlot::minimumSizeHint() const +{ + return QSize(0, 0); +} diff --git a/ApplicationCode/UserInterface/RiuWellLogTracePlot.h b/ApplicationCode/UserInterface/RiuWellLogTracePlot.h index ff9eb2a85f..9bc7f44030 100644 --- a/ApplicationCode/UserInterface/RiuWellLogTracePlot.h +++ b/ApplicationCode/UserInterface/RiuWellLogTracePlot.h @@ -46,6 +46,8 @@ public: protected: virtual bool eventFilter(QObject* watched, QEvent* event); virtual void focusInEvent(QFocusEvent* event); + virtual QSize sizeHint() const; + virtual QSize minimumSizeHint() const; private: void setDefaults();