#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 committed 2020-01-10 10:48:22 +01:00
1 parent 22aece407e
commit 391046c4fa
1 file changed
+3
@@ -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" );
}