diff --git a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp index cad86a5062..3947ae01ee 100644 --- a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp @@ -53,8 +53,6 @@ RiuWellLogPlot::RiuWellLogPlot(RimWellLogPlot* plotDefinition, QWidget* parent) m_layout->addWidget(m_scrollBar); connect(m_scrollBar, SIGNAL(valueChanged(int)), this, SLOT(slotSetMinDepth(int))); - - setFocusPolicy(Qt::ClickFocus); } //-------------------------------------------------------------------------------------------------- @@ -131,15 +129,3 @@ RimWellLogPlot* RiuWellLogPlot::ownerPlotDefinition() { return m_plotDefinition; } - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -void RiuWellLogPlot::focusInEvent(QFocusEvent* event) -{ - if (m_plotDefinition) - { - RiuMainWindow::instance()->projectTreeView()->selectAsCurrentItem(m_plotDefinition); - clearFocus(); - } -} diff --git a/ApplicationCode/UserInterface/RiuWellLogPlot.h b/ApplicationCode/UserInterface/RiuWellLogPlot.h index d156c5619d..08cd0d22a7 100644 --- a/ApplicationCode/UserInterface/RiuWellLogPlot.h +++ b/ApplicationCode/UserInterface/RiuWellLogPlot.h @@ -49,9 +49,6 @@ public: void setDepthRangeAndReplot(double minDepth, double maxDepth); -protected: - virtual void focusInEvent(QFocusEvent* event); - private: void updateScrollBar(double minDepth, double maxDepth);