Skip to content
Permalink
Browse files
Keep state for expression widget splitter
  • Loading branch information
NathanW2 committed May 22, 2014
1 parent 46086b2 commit 83a9c65ae0f8e3abc7fce03b343d88d871249530
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/gui/qgsexpressionbuilderwidget.cpp
@@ -23,6 +23,7 @@
#include <QMenu>
#include <QFile>
#include <QTextStream>
#include <QSettings>

QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
: QWidget( parent )
@@ -104,12 +105,18 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
}

txtSearchEdit->setPlaceholderText( tr( "Search" ) );

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


QgsExpressionBuilderWidget::~QgsExpressionBuilderWidget()
{

QSettings settings;
settings.setValue("/windows/QgsExpressionBuilderWidget/splitter", splitter->saveState() );
settings.setValue("/windows/QgsExpressionBuilderWidget/splitter2", splitter_2->saveState() );
}

void QgsExpressionBuilderWidget::setLayer( QgsVectorLayer *layer )

0 comments on commit 83a9c65

Please sign in to comment.