Skip to content
Permalink
Browse files

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

…dget is disabled
  • Loading branch information
github-actions authored and nyalldawson committed Feb 10, 2020
1 parent 7355633 commit 40ab96fd5ae7a1e59a2804314a98e551fe097d28
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgstexteditwrapper.cpp
@@ -210,7 +210,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 40ab96f

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