#5116 Use lineeditor widget for file path

This makes it possible to selected the text when field is disabled.
This commit is contained in:
Kristian Bendiksen 2020-01-08 17:29:00 +01:00
parent 22aece407e
commit 391046c4fa

View File

@ -18,6 +18,8 @@
#include "RimWellMeasurementFilePath.h"
#include "cafPdmUiLineEditor.h"
CAF_PDM_SOURCE_INIT( RimWellMeasurementFilePath, "WellMeasurementFilePath" );
//--------------------------------------------------------------------------------------------------
@ -29,6 +31,7 @@ RimWellMeasurementFilePath::RimWellMeasurementFilePath()
CAF_PDM_InitFieldNoDefault( &m_filePath, "FilePath", "File Path", "", "", "" );
m_filePath.uiCapability()->setUiReadOnly( true );
m_filePath.uiCapability()->setUiEditorTypeName( caf::PdmUiLineEditor::uiEditorTypeName() );
setUiName( "File Path" );
}