mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
#5116 Use lineeditor widget for file path
This makes it possible to selected the text when field is disabled.
This commit is contained in:
parent
22aece407e
commit
391046c4fa
@ -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" );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user