Skip to content

Commit

Permalink
Layout expression widget as horizontal. Fits better on screens and me…
Browse files Browse the repository at this point in the history
…ans less dialog resizing.
  • Loading branch information
NathanW2 committed Dec 1, 2014
1 parent 445675a commit 78141c4
Show file tree
Hide file tree
Showing 2 changed files with 426 additions and 437 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -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"
Expand All @@ -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 )
Expand Down

0 comments on commit 78141c4

Please sign in to comment.