Merge branch 'master' of github.com:qgis/Quantum-GIS

This commit is contained in:
Marco Hugentobler 2012-06-14 10:40:39 +02:00
commit f9ff8ccd46
2 changed files with 8 additions and 7 deletions

View File

@ -87,7 +87,11 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
if ( func.mParams >= 1 )
name += "(";
registerItem( func.mGroup, func.mName, " " + name + " " );
};
}
#if QT_VERSION >= 0x040700
txtSearchEdit->setPlaceHolderText( tr( "Search" ) );
#endif
}
@ -114,9 +118,9 @@ void QgsExpressionBuilderWidget::currentChanged( const QModelIndex &index, const
mValueListWidget->clear();
}
btnLoadAll->setVisible(item->getItemType() == QgsExpressionItem::Field);
btnLoadSample->setVisible(item->getItemType() == QgsExpressionItem::Field);
mValueGroupBox->setVisible(item->getItemType() == QgsExpressionItem::Field);
btnLoadAll->setVisible( item->getItemType() == QgsExpressionItem::Field );
btnLoadSample->setVisible( item->getItemType() == QgsExpressionItem::Field );
mValueGroupBox->setVisible( item->getItemType() == QgsExpressionItem::Field );
// Show the help for the current item.
QString help = loadFunctionHelp( item );

View File

@ -79,9 +79,6 @@
<property name="enabled">
<bool>true</bool>
</property>
<property name="placeholderText">
<string>Search</string>
</property>
</widget>
</item>
</layout>