mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use gray background for read only line edit
This commit is contained in:
parent
f4da2d748f
commit
fcec67e95e
@ -153,6 +153,10 @@ void PdmUiLineEditor::configureAndUpdateUi( const QString& uiConfigName )
|
||||
QString highlightColor = UiAppearanceSettings::instance()->autoValueEditorColor();
|
||||
m_lineEdit->setStyleSheet( QString( "QLineEdit {background-color: %1;}" ).arg( highlightColor ) );
|
||||
}
|
||||
else if ( uiField()->isUiReadOnly() )
|
||||
{
|
||||
m_lineEdit->setStyleSheet( "QLineEdit:read-only{background: palette(window);}" );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_lineEdit->setStyleSheet( "" );
|
||||
|
Loading…
Reference in New Issue
Block a user