mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#487) Stopped using focus events for selection in project tree
Already handled by sub window activation in main window.
This commit is contained in:
parent
58609ac9de
commit
d3f2df8b6b
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -49,9 +49,6 @@ public:
|
||||
|
||||
void setDepthRangeAndReplot(double minDepth, double maxDepth);
|
||||
|
||||
protected:
|
||||
virtual void focusInEvent(QFocusEvent* event);
|
||||
|
||||
private:
|
||||
void updateScrollBar(double minDepth, double maxDepth);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user