From d3f2df8b6b294b08403e28c7d2db238508abe686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Fri, 18 Sep 2015 09:41:42 +0200 Subject: [PATCH] (#487) Stopped using focus events for selection in project tree Already handled by sub window activation in main window. --- ApplicationCode/UserInterface/RiuWellLogPlot.cpp | 14 -------------- ApplicationCode/UserInterface/RiuWellLogPlot.h | 3 --- 2 files changed, 17 deletions(-) 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);