Skip to content
Permalink
Browse files

Layout expression widget as horizontal. Fits better on screens and me…

…ans less dialog resizing.
  • Loading branch information
NathanW2 committed Dec 1, 2014
1 parent 445675a commit 78141c497f77c5937b9aa35c3dbf967c8eea673e
Showing with 426 additions and 437 deletions.
  1. +3 −3 src/gui/qgsexpressionbuilderwidget.cpp
  2. +423 −434 src/ui/qgsexpressionbuilder.ui
@@ -110,10 +110,10 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )

QSettings settings;
splitter->restoreState( settings.value( "/windows/QgsExpressionBuilderWidget/splitter" ).toByteArray() );
splitter_2->restoreState( settings.value( "/windows/QgsExpressionBuilderWidget/splitter2" ).toByteArray() );
// splitter_2->restoreState( settings.value( "/windows/QgsExpressionBuilderWidget/splitter2" ).toByteArray() );

txtExpressionString->setFoldingVisible( false );
customFunctionBotton->setVisible( QgsPythonRunner::isValid() );
// customFunctionBotton->setVisible( QgsPythonRunner::isValid() );
txtPython->setVisible( false );
txtPython->setText( "@qgsfunction(args=-1, group='Custom')\n"
"def func(values, feature, parent):\n"
@@ -125,7 +125,7 @@ QgsExpressionBuilderWidget::~QgsExpressionBuilderWidget()
{
QSettings settings;
settings.setValue( "/windows/QgsExpressionBuilderWidget/splitter", splitter->saveState() );
settings.setValue( "/windows/QgsExpressionBuilderWidget/splitter2", splitter_2->saveState() );
// settings.setValue( "/windows/QgsExpressionBuilderWidget/splitter2", splitter_2->saveState() );
}

void QgsExpressionBuilderWidget::setLayer( QgsVectorLayer *layer )

0 comments on commit 78141c4

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