Skip to content

Commit

Permalink
expression builder: add splitters and change buttons
Browse files Browse the repository at this point in the history
respect HIG
  • Loading branch information
3nids committed Jan 14, 2014
1 parent 385bb59 commit 8edd6a4
Show file tree
Hide file tree
Showing 2 changed files with 568 additions and 539 deletions.
6 changes: 2 additions & 4 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -30,8 +30,7 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
setupUi( this );

mValueGroupBox->hide();
btnLoadAll->hide();
btnLoadSample->hide();
mLoadGroupBox->hide();
highlighter = new QgsExpressionHighlighter( txtExpressionString->document() );

mModel = new QStandardItemModel( );
Expand Down Expand Up @@ -131,8 +130,7 @@ void QgsExpressionBuilderWidget::currentChanged( const QModelIndex &index, const
mValueListWidget->clear();
}

btnLoadAll->setVisible( item->getItemType() == QgsExpressionItem::Field && mLayer );
btnLoadSample->setVisible( item->getItemType() == QgsExpressionItem::Field && mLayer );
mLoadGroupBox->setVisible( item->getItemType() == QgsExpressionItem::Field && mLayer );
mValueGroupBox->setVisible( item->getItemType() == QgsExpressionItem::Field && mLayer );

// Show the help for the current item.
Expand Down

0 comments on commit 8edd6a4

Please sign in to comment.