(#487) Stopped using focus events for selection in project tree

Already handled by sub window activation in main window.
This commit is contained in:
Pål Hagen 2015-09-18 09:41:42 +02:00
parent 58609ac9de
commit d3f2df8b6b
2 changed files with 0 additions and 17 deletions

View File

@ -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();
}
}

View File

@ -49,9 +49,6 @@ public:
void setDepthRangeAndReplot(double minDepth, double maxDepth);
protected:
virtual void focusInEvent(QFocusEvent* event);
private:
void updateScrollBar(double minDepth, double maxDepth);