Skip to content

Commit

Permalink
[ui][code editor] Remove fold area for the expression code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 7, 2020
1 parent 212438a commit aa50eb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/gui/codeeditors/qgscodeeditorexpression.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ QgsCodeEditorExpression::QgsCodeEditorExpression( QWidget *parent )
setTitle( tr( "Expression Editor" ) ); setTitle( tr( "Expression Editor" ) );
} }
setMarginVisible( false ); setMarginVisible( false );
setFoldingVisible( true ); setFoldingVisible( false );
setAutoCompletionCaseSensitivity( false ); setAutoCompletionCaseSensitivity( false );
QgsCodeEditorExpression::initializeLexer(); // avoid cppcheck warning by explicitly specifying namespace QgsCodeEditorExpression::initializeLexer(); // avoid cppcheck warning by explicitly specifying namespace
} }
Expand Down
2 changes: 0 additions & 2 deletions src/gui/qgsexpressionbuilderwidget.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
functionsplit->restoreState( settings.value( QStringLiteral( "Windows/QgsExpressionBuilderWidget/functionsplitter" ) ).toByteArray() ); functionsplit->restoreState( settings.value( QStringLiteral( "Windows/QgsExpressionBuilderWidget/functionsplitter" ) ).toByteArray() );
mShowHelpButton->setEnabled( functionsplit->sizes().at( 1 ) == 0 ); mShowHelpButton->setEnabled( functionsplit->sizes().at( 1 ) == 0 );


txtExpressionString->setFoldingVisible( false );

if ( QgsPythonRunner::isValid() ) if ( QgsPythonRunner::isValid() )
{ {
QgsPythonRunner::eval( QStringLiteral( "qgis.user.expressionspath" ), mFunctionsPath ); QgsPythonRunner::eval( QStringLiteral( "qgis.user.expressionspath" ), mFunctionsPath );
Expand Down

0 comments on commit aa50eb0

Please sign in to comment.