Index: src/app/attributetable/qgsattributetabledialog.cpp =================================================================== --- src/app/attributetable/qgsattributetabledialog.cpp (revisione 14229) +++ src/app/attributetable/qgsattributetabledialog.cpp (copia locale) @@ -620,12 +620,16 @@ int fldIndex = mLayer->fieldNameIndex( fieldName ); QVariant::Type fldType = flds[fldIndex].type(); bool numeric = ( fldType == QVariant::Int || fldType == QVariant::Double ); + QString sensString = "ILIKE"; + if (cbxCaseSensitive->isChecked()) { + sensString = "LIKE"; + } QString str = QString( "%1 %2 '%3'" ) .arg( QgsSearchTreeNode::quotedColumnRef( fieldName ) ) - .arg( numeric ? "=" : "~" ) - .arg( mQuery->displayText().replace( "'", "''" ) ); // escape quotes - + .arg( numeric ? "=" : sensString ) + .arg( numeric ? mQuery->displayText().replace( "'", "''" ) : + "%" + mQuery->displayText().replace ("'", "''") + "%" ); // escape quotes doSearch( str ); } Index: src/ui/qgsattributetabledialog.ui =================================================================== --- src/ui/qgsattributetabledialog.ui (revisione 14229) +++ src/ui/qgsattributetabledialog.ui (copia locale) @@ -26,18 +26,28 @@ - Show selected records only + Show selected only - Search selected records only + Search selected only + + + Case sensitive + + + true + + + + Qt::Horizontal @@ -68,8 +78,14 @@ + + + 85 + 0 + + - Help + ?