Skip to content
Permalink
Browse files

[edit widgets] Fix text edit right-click menu item background

when widget is disabled (fixes #29542)
  • Loading branch information
nirvn committed Feb 10, 2020
1 parent 249c75b commit 77f47f0da9dbf80a5f65989a5e2b5db02dfbe2b3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgstexteditwrapper.cpp
@@ -258,7 +258,7 @@ void QgsTextEditWrapper::setEnabled( bool enabled )
mLineEdit->setPalette( mReadOnlyPalette );
// removing frame + setting transparent background to distinguish the readonly lineEdit from a normal one
// did not get this working via the Palette:
mLineEdit->setStyleSheet( QStringLiteral( "background-color: rgba(255, 255, 255, 75%);" ) );
mLineEdit->setStyleSheet( QStringLiteral( "QLineEdit { background-color: rgba(255, 255, 255, 75%); }" ) );
}
mLineEdit->setFrame( enabled );
}

0 comments on commit 77f47f0

Please sign in to comment.
You can’t perform that action at this time.